From 9f4bb73103c327a37e57de51f5a52ea15e3be834 Mon Sep 17 00:00:00 2001 From: BrandonXLF Date: Thu, 8 Sep 2022 19:15:04 -0400 Subject: [PATCH] Make redis auth optional --- includes/Title.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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();