diff --git a/includes/Title.php b/includes/Title.php index 08e2cff..e429257 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -60,7 +60,12 @@ private function getNamespaceInfo($namespace) { $redis = new Redis; $redis->connect(Config::get('redis-server'), Config::get('redis-port')); - $redis->auth(Config::get('redis-auth')); + + $redisAuth = Config::get('redis-auth'); + + if ($redisAuth) { + $redis->auth($redisAuth); + } $redis->close();