diff --git a/config.php b/config.php index 52036c4..b35be42 100644 --- a/config.php +++ b/config.php @@ -94,6 +94,12 @@ class config // Create a conf where all the keys are defined. If the keys are already // define, use them, or use the default ones // Don't allow keys not defined in default ones + if (! is_array ($this->default[$param])) + { + if (! array_key_exists ($param, $conf)) + return $this->default[$param]; + return $conf[$param]; + } foreach ($this->default[$param] as $key=>$val) { if ($key === "not configured")