Index: trunk/kernel/include/permissions.php =================================================================== diff -u -r342 -r674 --- trunk/kernel/include/permissions.php (.../permissions.php) (revision 342) +++ trunk/kernel/include/permissions.php (.../permissions.php) (revision 674) @@ -101,7 +101,8 @@ function LoadCategory($Id) { - if($this->GroupId == NULL) + if(!is_numeric($Id)) $Id = 0; + if($this->GroupId == NULL) { $sql = "SELECT * FROM ".$this->SourceTable." WHERE CatId=$Id AND Type=0 AND GroupId IS NULL"; }