summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a949547)
raw | patch | inline | side by side (parent: a949547)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Jul 2009 08:48:09 +0000 (08:48 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Jul 2009 08:48:09 +0000 (08:48 +0000) |
Avoids problem with "ghost" entries.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13924 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13924 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/fai/admin/fai/class_faiProfile.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/fai/admin/fai/class_faiProfile.inc b/trunk/gosa-plugins/fai/admin/fai/class_faiProfile.inc
index 0e46f71d5fd1e91b2981f922d98ada0cce0a931f..3daa2424d77f3ad669c546a99db65953cbea0e57 100644 (file)
}
if($s_action == "delete" && $this->acl_is_writeable("FAIclass")){
+ $newfaiclasses = array();
foreach($this->FAIclasses as $key => $name) {
- if ($name == $s_entry) {
- unset($this->FAIclasses[$key]);
- break;
+ if ($name != $s_entry) {
+ array_push($newfaiclasses, $name);
}
}
+ $this->FAIclasses = $newfaiclasses;
}
if($s_action == "add" && $this->acl_is_writeable("FAIclass")){