diff options
author | tailor <cygnus@janrain.com> | 2008-03-13 23:44:16 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2008-03-13 23:44:16 +0000 |
commit | a927e857ee54199f605397df4ca7f34e00231e3f (patch) | |
tree | e0f0b247de8fbd70fc01faf22262f0125e73070b | |
parent | 93f7f45ddf882c0159b7a753c8432c47042f415b (diff) | |
download | php-openid-a927e857ee54199f605397df4ca7f34e00231e3f.zip php-openid-a927e857ee54199f605397df4ca7f34e00231e3f.tar.gz php-openid-a927e857ee54199f605397df4ca7f34e00231e3f.tar.bz2 |
[project @ Handle null responses in Yadis.php]
-rw-r--r-- | Auth/Yadis/Yadis.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Auth/Yadis/Yadis.php b/Auth/Yadis/Yadis.php index 514703c..4e03d11 100644 --- a/Auth/Yadis/Yadis.php +++ b/Auth/Yadis/Yadis.php @@ -318,7 +318,7 @@ class Auth_Yadis_Yadis { $response = $fetcher->get($yadis_location); - if ($response->status != 200) { + if ((!$response) || ($response->status != 200)) { $result->fail(); return $result; } |