From 39abe5fc8fcb28e28cc81552c7ca95afc9b2f942 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Mar 2010 08:09:03 +0000 Subject: [PATCH] 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 --- gosa-plugins/sudo/admin/sudo/class_sudoOption.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"]; -- 2.30.2