From: hickert Date: Thu, 27 Apr 2006 07:32:27 +0000 (+0000) Subject: Fixed undefined index X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a37d36ded9648644ceb6e66f9e8725279d493300;p=gosa.git Fixed undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3141 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index 7024f1a49..f789dc9f7 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -187,51 +187,54 @@ class appgroup extends plugin /* Only diff if it is required */ $ret =array(); - + /* If current release has changed */ if($this->FAIrelease != $this->InitialFAIrelease){ - + /* Walk through all apps which are currently displayed */ - foreach($this->gosaMemberApplication[$this->curCatDir] as $entry){ + if(isset($this->gosaMemberApplication[$this->curCatDir])){ - /* If application is also available in new release, check if parameter differs */ - if(in_array($entry['App'],$this->AllAppsForRelease)){ + foreach($this->gosaMemberApplication[$this->curCatDir] as $entry){ - $old = array(); // Old application parameter - $new = array(); // New parameters + /* If application is also available in new release, check if parameter differs */ + if(in_array($entry['App'],$this->AllAppsForRelease)){ - /* There are possibly no parameters specified */ - if(isset($this->AllAppsForReleaseParameter[$this->InitialFAIrelease][$entry['App']])){ - $old = $this->AllAppsForReleaseParameter[$this->InitialFAIrelease][$entry['App']]; - } + $old = array(); // Old application parameter + $new = array(); // New parameters - if(isset($this->AllAppsForReleaseParameter[$this->FAIrelease][$entry['App']])){ - $new = $this->AllAppsForReleaseParameter[$this->FAIrelease][$entry['App']]; - } + /* There are possibly no parameters specified */ + if(isset($this->AllAppsForReleaseParameter[$this->InitialFAIrelease][$entry['App']])){ + $old = $this->AllAppsForReleaseParameter[$this->InitialFAIrelease][$entry['App']]; + } - /* Both (old & new) have no gosaApplicationParameter - */ - if((!isset($old['gosaApplicationParameter'])) && (!isset($new['gosaApplicationParameter']))){ - $ret[$entry['App']] = false; + if(isset($this->AllAppsForReleaseParameter[$this->FAIrelease][$entry['App']])){ + $new = $this->AllAppsForReleaseParameter[$this->FAIrelease][$entry['App']]; + } - /* Both got gosaApplicationParameter + /* Both (old & new) have no gosaApplicationParameter */ - }elseif((isset($old['gosaApplicationParameter'])) && (isset($new['gosaApplicationParameter']))){ - if(array_differs($old['gosaApplicationParameter'],$new['gosaApplicationParameter'])){ - $ret[$entry['App']] = true; - }else{ - $ret[$entry['App']] = false; + if((!isset($old['gosaApplicationParameter'])) && (!isset($new['gosaApplicationParameter']))){ + $ret[$entry['App']] = false; + + /* Both got gosaApplicationParameter + */ + }elseif((isset($old['gosaApplicationParameter'])) && (isset($new['gosaApplicationParameter']))){ + if(array_differs($old['gosaApplicationParameter'],$new['gosaApplicationParameter'])){ + $ret[$entry['App']] = true; + }else{ + $ret[$entry['App']] = false; + } } - } - /* Initialy had gosaApplicationParameter bot in new release not - */ - }elseif((isset($old['gosaApplicationParameter'])) && (!isset($new['gosaApplicationParameter']))){ - $ret[$entry['App']] = true; + /* Initialy had gosaApplicationParameter bot in new release not + */ + }elseif((isset($old['gosaApplicationParameter'])) && (!isset($new['gosaApplicationParameter']))){ + $ret[$entry['App']] = true; - /* Old release had no gosaApplicationParameter but new got some - */ - }elseif((!isset($old['gosaApplicationParameter'])) && (isset($new['gosaApplicationParameter']))){ - $ret[$entry['App']] = true; + /* Old release had no gosaApplicationParameter but new got some + */ + }elseif((!isset($old['gosaApplicationParameter'])) && (isset($new['gosaApplicationParameter']))){ + $ret[$entry['App']] = true; + } } } }