summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authormichael pereira2011-04-25 14:32:11 +0200
committermichael pereira2011-04-25 14:32:11 +0200
commit285d17bc9ae74450e5a952ca3ea648619f87eb1d (patch)
tree20070498c9a09f23a4ad351c8fdb31e6ac8d1e29 /application
parentconfig fix (diff)
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-285d17bc9ae74450e5a952ca3ea648619f87eb1d.tar.gz
pbs2-285d17bc9ae74450e5a952ca3ea648619f87eb1d.tar.xz
pbs2-285d17bc9ae74450e5a952ca3ea648619f87eb1d.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application')
-rw-r--r--application/models/GroupGroupsMapper.php4
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;