From: psc Date: Tue, 7 Jul 2009 08:51:45 +0000 (+0000) Subject: Followup commit for r13694 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6fa14f69908074852a47d03e55ba55c80add3aa3;p=gosa.git Followup commit for r13694 - Make delete functionality properly handle the new array with numeric indices git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13898 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/fai/admin/fai/class_faiProfile.inc b/trunk/gosa-plugins/fai/admin/fai/class_faiProfile.inc index 1faedc2f2..7ffb7b9b5 100644 --- a/trunk/gosa-plugins/fai/admin/fai/class_faiProfile.inc +++ b/trunk/gosa-plugins/fai/admin/fai/class_faiProfile.inc @@ -227,7 +227,12 @@ class faiProfile extends plugin } if($s_action == "delete" && $this->acl_is_writeable("FAIclass")){ - unset($this->FAIclasses[$s_entry]); + foreach($this->FAIclasses as $key => $name) { + if ($name == $s_entry) { + unset($this->FAIclasses[$key]); + break; + } + } } if($s_action == "add" && $this->acl_is_writeable("FAIclass")){