summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/SQLStore.php
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-08-22 16:46:17 +0000
committertailor <cygnus@janrain.com>2006-08-22 16:46:17 +0000
commitb52569f0469a043e9f8d96e858600c7a73f21403 (patch)
tree39e4e91954449e8fc5551ac8fd596a4c9f3d6759 /Auth/OpenID/SQLStore.php
parent1136cad84f123c228f155dbcd4de4c89c956ebfa (diff)
downloadphp-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>)]
Diffstat (limited to 'Auth/OpenID/SQLStore.php')
-rw-r--r--Auth/OpenID/SQLStore.php2
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();