diff --git a/_sakura/components/Configuration.php b/_sakura/components/Configuration.php index 144e8c0..af36e93 100644 --- a/_sakura/components/Configuration.php +++ b/_sakura/components/Configuration.php @@ -47,10 +47,10 @@ class Configuration { public static function getLocalConfig($key, $subkey = null) { // Check if the key that we're looking for exists - if(array_key_exists($key, self::$_LCNF)) { // If we also have a subkey we check if that exists, else we just return the default value. - if($subkey && is_array($key) && array_key_exists($subkey, $key)) + if(array_key_exists($key, self::$_LCNF)) { + if($subkey) // If we also have a subkey return the proper shit return self::$_LCNF[$key][$subkey]; - else + else // else we just return the default value return self::$_LCNF[$key]; } else // If it doesn't exist trigger an error to avoid explosions trigger_error('Unable to get local configuration value!', E_USER_ERROR);