From a6da2a60df937c9ee02df3579494cb35eb3af59f Mon Sep 17 00:00:00 2001 From: Akhil Date: Tue, 18 Jul 2023 14:29:08 +0530 Subject: [PATCH] init conn only if config is defined --- lib/Db/SSOMapper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Db/SSOMapper.php b/lib/Db/SSOMapper.php index 3cb62a85..d0f0c69c 100644 --- a/lib/Db/SSOMapper.php +++ b/lib/Db/SSOMapper.php @@ -31,7 +31,9 @@ class SSOMapper { $this->logger = $logger; $this->userManager = $userManager; $this->crypto = $crypto; - $this->initConnection(); + if (!empty($this->config->getSystemValue(self::SSO_CONFIG_KEY))) { + $this->initConnection(); + } } public function isSSOEnabled() : bool { -- GitLab