diff options
Diffstat (limited to 'application/models')
-rw-r--r-- | application/models/GroupGroupsMapper.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/application/models/GroupGroupsMapper.php b/application/models/GroupGroupsMapper.php index 535c380..702d6d9 100644 --- a/application/models/GroupGroupsMapper.php +++ b/application/models/GroupGroupsMapper.php @@ -117,7 +117,7 @@ class Application_Model_GroupGroupsMapper // Gets All groupIDs of the parent groups begins with the public function getParentGroups($groupID, &$data=null, $level=0) { if($this->crawledNodes['parent'][$groupID] == 1) - return; + return $data; $this->crawledNodes['parent'][$groupID] = 1; $data[$level][] = $groupID; @@ -134,9 +134,8 @@ class Application_Model_GroupGroupsMapper // Gets all childs-groups from a given group public function getChildGroups($groupID, &$data=null, $level=0) { if($this->crawledNodes['child'][$groupID] == 1) - return; + return $data; $this->crawledNodes['child'][$groupID] = 1; - $data[$level][] = $groupID; $db = Zend_Db_Table::getDefaultAdapter(); $query = 'SELECT groupID FROM pbs_groupgroups WHERE parentID="'.$groupID.'"'; |