diff options
-rw-r--r-- | Auth/OpenID/Server.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Auth/OpenID/Server.php b/Auth/OpenID/Server.php index 62a303d..065d529 100644 --- a/Auth/OpenID/Server.php +++ b/Auth/OpenID/Server.php @@ -817,10 +817,11 @@ class Auth_OpenID_CheckIDRequest extends Auth_OpenID_Request { */ function returnToVerified() { + $fetcher = Auth_Yadis_Yadis::getHTTPFetcher(); return call_user_func_array($this->verifyReturnTo, - array($this->trust_root, $this->return_to)); + array($this->trust_root, $this->return_to, $fetcher)); } - + static function fromMessage(&$message, $server) { $mode = $message->getArg(Auth_OpenID_OPENID_NS, 'mode'); @@ -1468,7 +1469,7 @@ class Auth_OpenID_Encoder { return new Auth_OpenID_EncodingError($response); } /* Allow the response to carry a custom error code (ex: for Association errors) */ - if($response->code) { + if(isset($response->code)) { $wr->code = $response->code; } return $wr; |