Browse Source

Formatting DB class.

Taylor Otwell 13 years ago
parent
commit
d0fafd1301
1 changed files with 6 additions and 3 deletions
  1. 6 3
      system/db.php

+ 6 - 3
system/db.php

@@ -25,9 +25,12 @@ class DB {
 			$connection = Config::get('db.default');
 		}
 
-		return array_key_exists($connection, static::$connections)
-                                                  ? static::$connections[$connection]
-                                                  : static::$connections[$connection] = DB\Connector::connect($connection);
+		if ( ! array_key_exists($connection, static::$connections))
+		{
+			static::$connections[$connection] = DB\Connector::connect($connection);
+		}
+
+		return static::$connections[$connection];
 	}
 
 	/**