From 6fa14f69908074852a47d03e55ba55c80add3aa3 Mon Sep 17 00:00:00 2001 From: psc Date: Tue, 7 Jul 2009 08:51:45 +0000 Subject: [PATCH] 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 --- trunk/gosa-plugins/fai/admin/fai/class_faiProfile.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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")){ -- 2.30.2