From 933749e8643fa5e07af5b6e0c2a462eebe444e8e Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 25 Apr 2011 13:48:55 +0200 Subject: Fehlermeldungen in GroupsGroupsMapper korrigiert --- application/models/GroupGroupsMapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application') diff --git a/application/models/GroupGroupsMapper.php b/application/models/GroupGroupsMapper.php index f231523..318b298 100644 --- a/application/models/GroupGroupsMapper.php +++ b/application/models/GroupGroupsMapper.php @@ -126,7 +126,7 @@ class Application_Model_GroupGroupsMapper private $crawledNodes; // Gets All groupIDs of the parent groups begins with the public function getParentGroups($groupID, &$data=null, $level=0) { - if($this->crawledNodes['parent'][$groupID] == 1) + if(isset($this->crawledNodes['parent'][$groupID]) && $this->crawledNodes['parent'][$groupID] == 1) return $data; $this->crawledNodes['parent'][$groupID] = 1; @@ -143,7 +143,7 @@ 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) + if(isset($this->crawledNodes['child'][$groupID]) && $this->crawledNodes['child'][$groupID] == 1) return $data; $this->crawledNodes['child'][$groupID] = 1; $data[$level][] = $groupID; -- cgit v1.2.3-55-g7522