From 684a210f947c14a86a041a162678926846651c99 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 22 Jul 2005 06:01:49 +0000 Subject: [PATCH] Added fix for already deleted application ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@993 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupApplication.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index a57969d68..57bb2c0c5 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -272,8 +272,17 @@ class appgroup extends plugin reset ($this->apps); $this->used_apps= array(); + foreach ($this->gosaMemberApplication as $value){ - $this->used_apps[$value]= $this->apps[$value]; + if(!isset($this->apps[$value])){ + print_red(sprintf(_("The application named %s is no longer available and has been removed."),$value)); + $test = $this->gosaMemberApplication; + $test = array_flip($test); + unset($test[$value]); + $this->gosaMemberApplication = array_flip($test); + }else{ + $this->used_apps[$value]= $this->apps[$value]; + } } } -- 2.30.2