From 390d71785f231cdfa6fb48546937786f826fb03b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 01:57:49 +0000 Subject: [PATCH] mlanthaler: August 3, 2007 - will@willnorris.com: prevent error 'call to member function of a non-object' (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42028 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/OpenID/Auth/OpenID/Consumer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/OpenID/Auth/OpenID/Consumer.php b/security/OpenID/Auth/OpenID/Consumer.php index d75b842d3..a2f39472d 100644 --- a/security/OpenID/Auth/OpenID/Consumer.php +++ b/security/OpenID/Auth/OpenID/Consumer.php @@ -1298,7 +1298,7 @@ class Auth_OpenID_GenericConsumer { $resp = $this->fetcher->post($server_url, $body); if ($resp === null) { - return Auth_OpenID_ServerErrorContainer::fromMessage(''); + return null; } $response_message = Auth_OpenID_Message::fromKVForm($resp->body);