From b0e24e2b8deefd8916a7bc194972a87f1cde23c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 18 Oct 2018 21:24:06 +0200 Subject: [PATCH] use strict comparaison --- htdocs/core/login/functions_openid.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/login/functions_openid.php b/htdocs/core/login/functions_openid.php index 83543c43dd5..79cf1a09cb9 100644 --- a/htdocs/core/login/functions_openid.php +++ b/htdocs/core/login/functions_openid.php @@ -70,7 +70,7 @@ function check_user_password_openid($usertotest,$passwordtotest,$entitytotest) $openid = new SimpleOpenID(); $openid->SetIdentity($_GET['openid_identity']); $openid_validation_result = $openid->ValidateWithServer(); - if ($openid_validation_result == true) + if ($openid_validation_result === true) { // OK HERE KEY IS VALID @@ -90,7 +90,7 @@ function check_user_password_openid($usertotest,$passwordtotest,$entitytotest) } } } - else if($openid->IsError() == true) + else if($openid->IsError() === true) { // ON THE WAY, WE GOT SOME ERROR $error = $openid->GetError();