Fixed booleanization bug.

This commit is contained in:
andrey
2001-06-21 21:48:03 +00:00
parent e9b6d41a82
commit d4765fcab1
3 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -286,9 +286,9 @@ class Config_File extends PEAR {
return new Config_File_Error("Bad variable name '$var_name'");
if ($booleanize) {
if (preg_match("/^on|true|yes$/", $var_value))
if (preg_match("/^(on|true|yes)$/", $var_value))
$var_value = true;
else if (preg_match("/^off|false|no$/", $var_value))
else if (preg_match("/^(off|false|no)$/", $var_value))
$var_value = false;
}