From 671f6cb226d6974a51bf53cb4ac6394fea5b228d Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 12 Apr 2011 12:29:45 +0200 Subject: Fehler in GroupGroupsMapper gefixxt --- application/models/GroupGroupsMapper.php | 5 ++--- application/modules/user/controllers/IndexController.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'application') 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; } } } -- cgit v1.2.3-55-g7522