Index: trunk/kernel/include/parseditem.php =================================================================== diff -u -r446 -r470 --- trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 446) +++ trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 470) @@ -1508,7 +1508,6 @@ function Query_Item($sql,$limit = null, $fix_method = 'set_first') { - //echo "two_method
"; // query itemlist (module items) using $sql specified // apply direct limit clause ($limit) or calculate it if not specified // fix invalid page in case if needed by method specified in $fix_method @@ -1522,7 +1521,14 @@ //echo "page fix pre (class: ".get_class($this).")
"; $this->QueryItemCount = QueryCount($sql); // must get total item count before fixing $this->FixInvalidPage($fix_method); - return parent::Query_Item($sql,$this->GetPageOffset(),$this->GetPageRowCount()); + + // specially made for cats delete + if ($_GET['action'] != 'm_cat_delete') { + return parent::Query_Item($sql,$this->GetPageOffset(),$this->GetPageRowCount()); + } + else { + return parent::Query_Item($sql); + } } }