fixed bug in redis class.
This commit is contained in:
parent
cb027980ae
commit
0a2587d291
|
@ -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}")))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue