From 7b0495e8641a1d75fb6d2a4921cf3e61181c5c66 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 15 Aug 2011 15:37:59 -0500 Subject: [PATCH] More improvements to the configuration class. --- system/config.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/config.php b/system/config.php index 1a95bb36..f34708a5 100644 --- a/system/config.php +++ b/system/config.php @@ -42,9 +42,7 @@ public static function get($key, $default = null) static::load($module, $file); - if (is_null($key)) return static::$items[$module][$file]; - - return Arr::get(static::$items[$module][$file], $key, $default); + return (is_null($key)) ? static::$items[$module][$file] : Arr::get(static::$items[$module][$file], $key, $default); } /**