Index: branches/RC/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r10428 -r10516 --- branches/RC/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 10428) +++ branches/RC/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 10516) @@ -180,10 +180,7 @@ if ($event->getEventParam('recursive')) { if ($parent_cat_id > 0) { // not "Home" category - $sql = 'SELECT TreeLeft, TreeRight - FROM '.TABLE_PREFIX.'Category - WHERE CategoryId = '.$parent_cat_id; - $tree_indexes = $this->Conn->GetRow($sql); + $tree_indexes = $this->Application->getTreeIndex($parent_cat_id); $object->addFilter('parent_filter', TABLE_PREFIX.'Category.TreeLeft BETWEEN '.$tree_indexes['TreeLeft'].' AND '.$tree_indexes['TreeRight']); }