refactoring database and error classes.

This commit is contained in:
Taylor Otwell
2011-08-14 22:10:36 -05:00
parent d72f2c642b
commit b196313bd0
2 changed files with 15 additions and 5 deletions

View File

@@ -20,10 +20,7 @@ class DB {
*/
public static function connection($connection = null)
{
if (is_null($connection))
{
$connection = Config::get('db.default');
}
if (is_null($connection)) $connection = Config::get('db.default');
if ( ! array_key_exists($connection, static::$connections))
{