summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Auth/OpenID/Consumer.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php
index 4461fd4..12c53da 100644
--- a/Auth/OpenID/Consumer.php
+++ b/Auth/OpenID/Consumer.php
@@ -642,15 +642,15 @@ class Auth_OpenID_GenericConsumer {
{
$is_valid = Auth_OpenID::arrayGet($response, 'is_valid', 'false');
- if ($is_valid == 'true') {
- $invalidate_handle = Auth_OpenID::arrayGet($response,
- 'invalidate_handle');
+ $invalidate_handle = Auth_OpenID::arrayGet($response,
+ 'invalidate_handle');
- if ($invalidate_handle !== null) {
- $this->store->removeAssociation($server_url,
- $invalidate_handle);
- }
+ if ($invalidate_handle !== null) {
+ $this->store->removeAssociation($server_url,
+ $invalidate_handle);
+ }
+ if ($is_valid == 'true') {
return true;
}