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 | |
| parent | Übersicht verbessert (diff) | |
| download | pbs2-671f6cb226d6974a51bf53cb4ac6394fea5b228d.tar.gz pbs2-671f6cb226d6974a51bf53cb4ac6394fea5b228d.tar.xz pbs2-671f6cb226d6974a51bf53cb4ac6394fea5b228d.zip | |
Fehler in GroupGroupsMapper gefixxt
| -rw-r--r-- | application/models/GroupGroupsMapper.php | 5 | ||||
| -rw-r--r-- | application/modules/user/controllers/IndexController.php | 2 |
2 files changed, 3 insertions, 4 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.'"'; diff --git a/application/modules/user/controllers/IndexController.php b/application/modules/user/controllers/IndexController.php index ce5c994..1205f7a 100644 --- a/application/modules/user/controllers/IndexController.php +++ b/application/modules/user/controllers/IndexController.php @@ -21,7 +21,7 @@ class User_IndexController extends Zend_Controller_Action '/user/config' => 'Create your own Configuration', '/user/bootmenu' => 'Create your Bootmenu', ); - $this->view->links = $links; + $this->view->links = $links; } } } |
