Code

Updated config true/false mapping
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Jun 2006 08:23:53 +0000 (08:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Jun 2006 08:23:53 +0000 (08:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3891 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index b79df2426fb5b024e98e0224029ba8fd9a656748..900e7c80a5149855b4e296914c31e24482431d18 100644 (file)
@@ -93,9 +93,9 @@ class config  {
 
     /* yes/no to true/false and upper case TRUE to true and so on*/
     foreach($attrs as $name => $value){
-      if((preg_match("/^yes$/i",$value)) || (preg_match("/^true$/i",$value))){
+      if(preg_match("/(true|yes)/i",$value)){
         $attrs[$name] = "true";
-      }elseif((preg_match("/^no$/i",$value)) || (preg_match("/^false$/i",$value))){
+      }elseif(preg_match("/(false|no)/i",$value)){
         $attrs[$name] = "false";
       } 
     }