diff --git a/main/inc/local.inc.php b/main/inc/local.inc.php index 471b3fe1ac..bf2a6441ee 100644 --- a/main/inc/local.inc.php +++ b/main/inc/local.inc.php @@ -359,7 +359,7 @@ if (!empty($_SESSION['_user']['user_id']) && ! ($login || $logout)) { } //end if is_array($extAuthSource) } //end else login failed - } elseif(api_get_setting('sso_authentication') && !in_array('webservices', explode('/', $_SERVER['REQUEST_URI']))) { + } elseif(api_get_setting('sso_authentication')==='true' && !in_array('webservices', explode('/', $_SERVER['REQUEST_URI']))) { /** * TODO: * - Implement user interface for api_get_setting('sso_authentication')