Commit 7b0495e8 by Taylor Otwell

More improvements to the configuration class.

parent 551cffcd
......@@ -42,9 +42,7 @@ class Config {
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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment