Index: trunk/core/units/user_groups/user_groups_dbitem.php =================================================================== diff -u -r7635 -r7855 --- trunk/core/units/user_groups/user_groups_dbitem.php (.../user_groups_dbitem.php) (revision 7635) +++ trunk/core/units/user_groups/user_groups_dbitem.php (.../user_groups_dbitem.php) (revision 7855) @@ -14,12 +14,14 @@ */ function GetKeyClause($method=null, $keys_hash = null) { - $table_info = $this->getLinkedInfo(); - $keys_hash = Array( - $this->IDField => $this->ID, - $table_info['ForeignKey'] => $table_info['ParentId'], - ); - + $table_info = $this->getLinkedInfo($this->Special); + if ($table_info) { + // we have parent info, then use it + $keys_hash = Array( + $this->IDField => $this->ID, + $table_info['ForeignKey'] => $table_info['ParentId'], + ); + } return parent::GetKeyClause($method, $keys_hash); }