mirror of https://github.com/MISP/MISP
Merge pull request #9607 from JakubOnderka/oidc-fix-update-role
fix: [oidc] Setting checking if variable is falsepull/9613/head
commit
7d719639e2
|
@ -458,7 +458,7 @@ class Oidc
|
||||||
private function getConfig($config, $default = null)
|
private function getConfig($config, $default = null)
|
||||||
{
|
{
|
||||||
$value = Configure::read("OidcAuth.$config");
|
$value = Configure::read("OidcAuth.$config");
|
||||||
if (empty($value)) {
|
if ($value === null) {
|
||||||
if ($default === null) {
|
if ($default === null) {
|
||||||
throw new RuntimeException("Config option `OidcAuth.$config` is not set.");
|
throw new RuntimeException("Config option `OidcAuth.$config` is not set.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue