X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_config.inc;h=b79df2426fb5b024e98e0224029ba8fd9a656748;hb=478ea60361b0824f073fd6151f1f064c54eb3c52;hp=33bc836d86b9ff021e93452545e522b1b9ed29d3;hpb=cee6d6e2e4bbd6e46f10fe95bcce242ebd3b02d9;p=gosa.git diff --git a/include/class_config.inc b/include/class_config.inc index 33bc836d8..b79df2426 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -91,9 +91,19 @@ class config { return; } + /* 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))){ + $attrs[$name] = "true"; + }elseif((preg_match("/^no$/i",$value)) || (preg_match("/^false$/i",$value))){ + $attrs[$name] = "false"; + } + } + /* Look through attributes */ switch ($this->tags[$this->level-1]){ + /* Handle tab section */ case 'TAB': $name= $this->tags[$this->level-2]; @@ -113,8 +123,8 @@ class config { $this->currentLocation= $name; /* Add location elements */ - $this->data['LOCATIONS'][$name]= $attrs; - } + $this->data['LOCATIONS'][$name]= $attrs; + } break; /* Handle referral tags */