tweaked config and lang classes.

This commit is contained in:
Taylor Otwell
2011-08-02 20:20:17 -05:00
parent f087df9bb8
commit 3583bc3b09
3 changed files with 13 additions and 13 deletions

View File

@@ -110,7 +110,12 @@ class Config {
$config = array_merge($config, require $path);
}
return (count(static::$items[$file] = $config) > 0);
if (count($config) > 0)
{
static::$items[$file] = $config;
}
return isset(static::$items[$file]);
}
}