Index: trunk/core/units/categories/categories_item.php =================================================================== diff -u -N -r7855 -r8104 --- trunk/core/units/categories/categories_item.php (.../categories_item.php) (revision 7855) +++ trunk/core/units/categories/categories_item.php (.../categories_item.php) (revision 8104) @@ -149,17 +149,7 @@ */ function IsRoot() { - $category_id = $this->Application->GetVar($this->getPrefixSpecial().'_id'); - if (is_numeric($category_id) && $category_id == 0 && !$this->Application->GetVar($this->getPrefixSpecial().'_PreCreate')) { - $sql = 'SELECT '.$this->IDField.' - FROM '.$this->TableName.' - WHERE '.$this->IDField.' = '.$category_id; - if ($this->Conn->GetOne($sql) === false) { - return true; - } - } - - return false; + return $this->Application->RecallVar('IsRootCategory_'.$this->Application->GetVar('m_wid')); } /**