diff options
Diffstat (limited to 'application/models/GroupGroupsMapper.php')
| -rw-r--r-- | application/models/GroupGroupsMapper.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
