More improvements to the configuration class.

This commit is contained in:
Taylor Otwell 2011-08-15 15:37:59 -05:00
parent 551cffcdbc
commit 7b0495e864
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}
/**