diff options
author | tailor <cygnus@janrain.com> | 2006-08-22 16:46:17 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-08-22 16:46:17 +0000 |
commit | b52569f0469a043e9f8d96e858600c7a73f21403 (patch) | |
tree | 39e4e91954449e8fc5551ac8fd596a4c9f3d6759 | |
parent | 1136cad84f123c228f155dbcd4de4c89c956ebfa (diff) | |
download | php-openid-b52569f0469a043e9f8d96e858600c7a73f21403.zip php-openid-b52569f0469a043e9f8d96e858600c7a73f21403.tar.gz php-openid-b52569f0469a043e9f8d96e858600c7a73f21403.tar.bz2 |
[project @ Fixed SQLStore getAssociation count() bug (thanks to Rasqual Twilight <oid@rasqual.silk.com>)]
-rw-r--r-- | Auth/OpenID/SQLStore.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Auth/OpenID/SQLStore.php b/Auth/OpenID/SQLStore.php index f685136..1cd6c68 100644 --- a/Auth/OpenID/SQLStore.php +++ b/Auth/OpenID/SQLStore.php @@ -485,7 +485,7 @@ class Auth_OpenID_SQLStore extends Auth_OpenID_OpenIDStore { $assocs = $this->_get_assocs($server_url); } - if (count($assocs) == 0) { + if (!$assocs || (count($assocs) == 0)) { return null; } else { $associations = array(); |