Commit 7e439ab5 by Taylor Otwell

fixed bug in config has method.

parent 0f1bd8a7
...@@ -7,7 +7,7 @@ class Config { ...@@ -7,7 +7,7 @@ class Config {
* *
* @var array * @var array
*/ */
private static $items = array(); public static $items = array();
/** /**
* Determine if a configuration item or file exists. * Determine if a configuration item or file exists.
...@@ -112,7 +112,10 @@ class Config { ...@@ -112,7 +112,10 @@ class Config {
$config = array_merge($config, require $path); $config = array_merge($config, require $path);
} }
return static::$items[$file] = $config; if (count($config) > 0)
{
static::$items[$file] = $config;
}
} }
} }
\ No newline at end of file
...@@ -413,7 +413,6 @@ class Query { ...@@ -413,7 +413,6 @@ class Query {
*/ */
public function first($columns = array('*')) public function first($columns = array('*'))
{ {
return (count($results = $this->take(1)->get($columns)) > 0) ? $results[0] : null; return (count($results = $this->take(1)->get($columns)) > 0) ? $results[0] : null;
} }
......
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