From 8d75749c2413b8b6e93dfd36d8f3ecf8f32c61d1 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 1 Apr 2015 17:41:06 +0200 Subject: [PATCH] get fucked --- _sakura/components/Configuration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);