index b79df2426fb5b024e98e0224029ba8fd9a656748..9cca396b698cd2c5e399f47ae69f6fb7786fe711 100644 (file)
--- a/include/class_config.inc
+++ b/include/class_config.inc
/* yes/no to true/false and upper case TRUE to true and so on*/
foreach($attrs as $name => $value){
/* 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";
$attrs[$name] = "true";
- }elseif((preg_match("/^no$/i",$value)) || (preg_match("/^false$/i",$value))){
+ }elseif(preg_match("/^(false|no)$/i",$value)){
$attrs[$name] = "false";
}
}
$attrs[$name] = "false";
}
}