Skip to content

Commit 9a3c7e6

Browse files
committed
Fix is_saml_enabled method
1 parent 3677d4a commit 9a3c7e6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

onelogin-saml-sso/php/functions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,12 @@ function initialize_saml() {
420420
}
421421

422422
function is_saml_enabled() {
423-
$saml_enabled = get_option('onelogin_saml_enabled', null);
424-
if ($saml_enabled == null) {
423+
$saml_enabled = get_option('onelogin_saml_enabled', 'not defined');
424+
if ($saml_enabled == 'not defined') {
425425
// If no data was saved about enable/disable saml, then
426-
// check if entityId also is null and then consider the
426+
// check if entityId also is not defined and then consider the
427427
// plugin disabled
428-
if (get_option('onelogin_saml_idp_entityid', null) == null) {
428+
if (get_option('onelogin_saml_idp_entityid', 'not defined') == 'not defined') {
429429
$saml_enabled = false;
430430
} else {
431431
$saml_enabled = true;

0 commit comments

Comments
 (0)