index 33bc836d86b9ff021e93452545e522b1b9ed29d3..9cca396b698cd2c5e399f47ae69f6fb7786fe711 100644 (file)
--- a/include/class_config.inc
+++ b/include/class_config.inc
return;
}
+ /* 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)){
+ $attrs[$name] = "true";
+ }elseif(preg_match("/^(false|no)$/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];
$this->currentLocation= $name;
/* Add location elements */
- $this->data['LOCATIONS'][$name]= $attrs;
- }
+ $this->data['LOCATIONS'][$name]= $attrs;
+ }
break;
/* Handle referral tags */