diff --git a/config.php b/config.php index 74b509b..56b5b2a 100644 --- a/config.php +++ b/config.php @@ -1,14 +1,14 @@ 'Pico', @@ -118,11 +121,10 @@ class Pico { 'enable_cache' => false ); - foreach($defaults as $key=>$val){ - if(isset($config[$key]) && $config[$key]) $defaults[$key] = $config[$key]; - } + if(is_array($config)) $config = array_merge($defaults, $config); + else $config = $defaults; - return $defaults; + return $config; } /**