summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2f79322)
raw | patch | inline | side by side (parent: 2f79322)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Jun 2006 08:28:06 +0000 (08:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Jun 2006 08:28:06 +0000 (08:28 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3892 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_config.inc | patch | blob | history |
index 900e7c80a5149855b4e296914c31e24482431d18..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){
- if(preg_match("/(true|yes)/i",$value)){
+ if(preg_match("/^(true|yes)$/i",$value)){
$attrs[$name] = "true";
- }elseif(preg_match("/(false|no)/i",$value)){
+ }elseif(preg_match("/^(false|no)$/i",$value)){
$attrs[$name] = "false";
}
}