From ee8c58c4c37df5afdfd84e426bbfe7a0b2a09003 Mon Sep 17 00:00:00 2001 From: CapaciousCore Date: Sun, 14 Aug 2016 04:23:32 +0200 Subject: [PATCH] Update openid.php Now truly returns boolean because it is the difference between if($openid->validate()) and if($openid->validate() === true) :) Alternative for this is type casting. --- openid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openid.php b/openid.php index 14e684b..680c27b 100644 --- a/openid.php +++ b/openid.php @@ -926,7 +926,7 @@ function validate() $response = $this->request($server, 'POST', $params); - return preg_match('/is_valid\s*:\s*true/i', $response); + return preg_match('/is_valid\s*:\s*true/i', $response) === 1; } protected function getAxAttributes()