fix: [oidc] Setting checking if variable is false

pull/9607/head
Jakub Onderka 2024-03-04 18:23:48 +01:00
parent 37cfd37cdb
commit 258b521870
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ class Oidc
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.");
}