From 198a91391158507d3ff78fadad7d9039596f3093 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 7 Apr 2008 08:40:26 +0000 Subject: [PATCH] Updated sudo saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10223 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); -- 2.30.2