From 258b52187016303fedcac703c57d950bb0335b81 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Mon, 4 Mar 2024 18:23:48 +0100 Subject: [PATCH] fix: [oidc] Setting checking if variable is false --- app/Plugin/OidcAuth/Lib/Oidc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Plugin/OidcAuth/Lib/Oidc.php b/app/Plugin/OidcAuth/Lib/Oidc.php index e2bb72c7d99..5390078a9f5 100644 --- a/app/Plugin/OidcAuth/Lib/Oidc.php +++ b/app/Plugin/OidcAuth/Lib/Oidc.php @@ -458,7 +458,7 @@ private function _findUser(array $settings, array $conditions) private function getConfig($config, $default = null) { $value = Configure::read("OidcAuth.$config"); - if (empty($value)) { + if ($value === null) { if ($default === null) { throw new RuntimeException("Config option `OidcAuth.$config` is not set."); }