From: hickert Date: Mon, 7 Apr 2008 08:40:26 +0000 (+0000) Subject: Updated sudo saving X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=198a91391158507d3ff78fadad7d9039596f3093;p=gosa.git Updated sudo saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10223 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc index 16e0c5b5e..f5bd1f2a1 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc @@ -298,7 +298,14 @@ class sudo extends plugin */ function save() { - plugin::save(); + plugin::save(); + + /* Ensure a correct array index + */ + $this->attrs['sudoHost'] = array_values($this->attrs['sudoHost']); + $this->attrs['sudoRunas'] = array_values($this->attrs['sudoRunas']); + $this->attrs['sudoUser'] = array_values($this->attrs['sudoUser']); + $this->attrs['sudoCommand'] = array_values($this->attrs['sudoCommand']); $this->cleanup(); $ldap = $this->config->get_ldap_link();