diff options
author | Simon | 2011-04-25 13:48:55 +0200 |
---|---|---|
committer | Simon | 2011-04-25 13:48:55 +0200 |
commit | 933749e8643fa5e07af5b6e0c2a462eebe444e8e (patch) | |
tree | 360c25713973eaf62374f726983db2ca95bb0da9 /application/models | |
parent | config fertig (diff) | |
download | pbs2-933749e8643fa5e07af5b6e0c2a462eebe444e8e.tar.gz pbs2-933749e8643fa5e07af5b6e0c2a462eebe444e8e.tar.xz pbs2-933749e8643fa5e07af5b6e0c2a462eebe444e8e.zip |
Fehlermeldungen in GroupsGroupsMapper korrigiert
Diffstat (limited to 'application/models')
-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; |