From: hickert Date: Wed, 17 Mar 2010 08:09:03 +0000 (+0000) Subject: Updated sudo options to support new kind of image buttons X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39abe5fc8fcb28e28cc81552c7ca95afc9b2f942;p=gosa.git Updated sudo options to support new kind of image buttons git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16711 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoOption.inc b/gosa-plugins/sudo/admin/sudo/class_sudoOption.inc index cf8d6bd1f..c167b206d 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoOption.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoOption.inc @@ -212,10 +212,8 @@ class sudoOption extends plugin if(preg_match("/^negOption_/",$name)){ - $opt = preg_replace("/^negOption_/","",$name); - $opt = preg_replace("/_[^_]*$/","",$opt); - $id = preg_replace("/^.*_([0-9])*$/","\\1",$opt); - $opt = preg_replace("/_[0-9]*$/","",$opt); + $opt = preg_replace("/^negOption_(.*)_[0-9]*$/","\\1", $name); + $id = preg_replace("/^negOption_.*_([0-9])*$/","\\1", $name); if(isset($this->sudoOption[$opt][$id])){ $val = $this->sudoOption[$opt][$id]["VALUE"];