summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();