Index: trunk/kernel/include/parseditem.php =================================================================== diff -u -N -r1135 -r1140 --- trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 1135) +++ trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 1140) @@ -2252,7 +2252,7 @@ $sql .="WHERE ($acl AND PermId=$VIEW AND $CategoryTable.Status=1) "; } - if(is_numeric($CatId)) + if(is_numeric($CatId) && $CatId > 0) { $sql .= " AND ($CategoryTable.CategoryId=$CatId) "; } @@ -2578,7 +2578,7 @@ $scope = (int)getArrayValue($attribs,'_scope'); $show_since_last = (int)getArrayValue($attribs,'_show_since_last'); //$JoinCats = (int)$attribs["_catinfo"] || $scope; - //echo "Last: $scope

"; + //echo "Last: $scope

"; $TableName = $this->SourceTable; if(getArrayValue($attribs,'_today')) { @@ -2628,7 +2628,7 @@ $OrderBy = $this->QueryOrderByClause(TRUE,TRUE,TRUE); $sql .= " ".$OrderBy; - //echo $sql; + //echo "SQL: $sql

"; return $sql; }