diff options
-rw-r--r-- | lib/private/RedisFactory.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/RedisFactory.php b/lib/private/RedisFactory.php index 5c38ed0807d..6b509b1c1a9 100644 --- a/lib/private/RedisFactory.php +++ b/lib/private/RedisFactory.php @@ -72,8 +72,8 @@ class RedisFactory { } $auth = null; - if (isset($config['password']) && $config['password'] !== '') { - if (isset($config['user']) && $config['user'] !== '') { + if (isset($config['password']) && (string)$config['password'] !== '') { + if (isset($config['user']) && (string)$config['user'] !== '') { $auth = [$config['user'], $config['password']]; } else { $auth = $config['password']; |