fixed bug in redis class.

This commit is contained in:
Taylor Otwell 2011-10-26 21:38:32 -05:00
parent cb027980ae
commit 0a2587d291
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public function __construct($host, $port)
*/ */
public static function db($name = 'default') public static function db($name = 'default')
{ {
if (is_null(static::$databases[$name])) if ( ! isset(static::$databases[$name]))
{ {
if (is_null($config = Config::get("database.redis.{$name}"))) if (is_null($config = Config::get("database.redis.{$name}")))
{ {