summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-09-19 19:46:41 +0000
committertailor <cygnus@janrain.com>2007-09-19 19:46:41 +0000
commit711756348c34631b35b75746677834e014325b84 (patch)
treef227b88c15ffea00f6d2936e907851197f01051a /Auth
parentd4c9aaaa2ec195a6ba7ad72c8532de64b6560a8a (diff)
downloadphp-openid-711756348c34631b35b75746677834e014325b84.zip
php-openid-711756348c34631b35b75746677834e014325b84.tar.gz
php-openid-711756348c34631b35b75746677834e014325b84.tar.bz2
[project @ FIX #28: fixed append() call and added failed discovery verification test]
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID/Consumer.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php
index d75b842..4bc62cc 100644
--- a/Auth/OpenID/Consumer.php
+++ b/Auth/OpenID/Consumer.php
@@ -1067,14 +1067,11 @@ class Auth_OpenID_GenericConsumer {
// Search the services resulting from discovery to find one
// that matches the information from the assertion
- $failure_messages = array();
foreach ($services as $endpoint) {
$result = $this->_verifyDiscoverySingle($endpoint, $to_match);
- if (Auth_OpenID::isFailure($result)) {
- $failure_messages->append($result);
- } else {
+ if (!Auth_OpenID::isFailure($result)) {
// It matches, so discover verification has
// succeeded. Return this endpoint.
return $endpoint;