fixed loading of empty values

This commit is contained in:
Roland Gruber 2006-02-03 15:36:39 +00:00
parent 629f3e8c49
commit 714b756bb2
1 changed files with 6 additions and 1 deletions

View File

@ -229,6 +229,10 @@ class Config {
} }
break; break;
} }
elseif (strtolower($line) == strtolower($keyword . ":")) {
// set empty options
$this->$keyword = '';
}
} }
} }
fclose($file); fclose($file);
@ -665,7 +669,8 @@ class Config {
* @return array list of types * @return array list of types
*/ */
function get_ActiveTypes() { function get_ActiveTypes() {
return explode(",", $this->activeTypes); if (($this->activeTypes == '') || !isset($this->activeTypes)) return array();
else return explode(",", $this->activeTypes);
} }
/** /**