We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3677d4a commit 9a3c7e6Copy full SHA for 9a3c7e6
1 file changed
onelogin-saml-sso/php/functions.php
@@ -420,12 +420,12 @@ function initialize_saml() {
420
}
421
422
function is_saml_enabled() {
423
- $saml_enabled = get_option('onelogin_saml_enabled', null);
424
- if ($saml_enabled == null) {
+ $saml_enabled = get_option('onelogin_saml_enabled', 'not defined');
+ if ($saml_enabled == 'not defined') {
425
// If no data was saved about enable/disable saml, then
426
- // check if entityId also is null and then consider the
+ // check if entityId also is not defined and then consider the
427
// plugin disabled
428
- if (get_option('onelogin_saml_idp_entityid', null) == null) {
+ if (get_option('onelogin_saml_idp_entityid', 'not defined') == 'not defined') {
429
$saml_enabled = false;
430
} else {
431
$saml_enabled = true;
0 commit comments