diff options
author | Simon | 2011-04-12 12:29:45 +0200 |
---|---|---|
committer | Simon | 2011-04-12 12:29:45 +0200 |
commit | 671f6cb226d6974a51bf53cb4ac6394fea5b228d (patch) | |
tree | c42876bffbb222ea1b4b0df8a7429ba2712a9653 /application/models | |
parent | Übersicht verbessert (diff) | |
download | pbs2-671f6cb226d6974a51bf53cb4ac6394fea5b228d.tar.gz pbs2-671f6cb226d6974a51bf53cb4ac6394fea5b228d.tar.xz pbs2-671f6cb226d6974a51bf53cb4ac6394fea5b228d.zip |
Fehler in GroupGroupsMapper gefixxt
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.'"'; |