diff options
author | tailor <cygnus@janrain.com> | 2006-05-03 23:47:16 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-05-03 23:47:16 +0000 |
commit | 42f1bba5f9a880dd888817b9e0f4b634c60ab72c (patch) | |
tree | 21901f6ddf976f7357e20b205cf16c67c94fbb78 | |
parent | e7ba35ff3306d3f73dddd3a11a8b83252a626115 (diff) | |
download | php-openid-42f1bba5f9a880dd888817b9e0f4b634c60ab72c.zip php-openid-42f1bba5f9a880dd888817b9e0f4b634c60ab72c.tar.gz php-openid-42f1bba5f9a880dd888817b9e0f4b634c60ab72c.tar.bz2 |
[project @ Cleaned up discovery logic]
-rw-r--r-- | Auth/OpenID/Discover.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Auth/OpenID/Discover.php b/Auth/OpenID/Discover.php index e062403..ffb919f 100644 --- a/Auth/OpenID/Discover.php +++ b/Auth/OpenID/Discover.php @@ -157,16 +157,16 @@ function Auth_OpenID_discoverWithYadis($uri) foreach ($openid_services as $service) { $type_uris = $service->getTypes(); + $uris = $service->getURIs(); // If any Type URIs match and there is an endpoint URI // specified, then this is an OpenID endpoint if ($type_uris && - ($service->getURIs())) { - $openid_endpoint = new Auth_OpenID_ServiceEndpoint(); + $uris) { - $uri = $service->getURIs(); - $uri = $uri[0]; + $uri = $uris[0]; + $openid_endpoint = new Auth_OpenID_ServiceEndpoint(); $openid_endpoint->parseService($response->xrds_uri, $uri, $type_uris, |