From 0a2587d2913c9d590209190e059e2a1eb44b30bd Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 26 Oct 2011 21:38:32 -0500 Subject: [PATCH] fixed bug in redis class. --- laravel/redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/redis.php b/laravel/redis.php index d0c25d74..c71047e6 100644 --- a/laravel/redis.php +++ b/laravel/redis.php @@ -61,7 +61,7 @@ public function __construct($host, $port) */ 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}"))) {