diff options
author | tailor <cygnus@janrain.com> | 2006-05-30 23:26:21 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-05-30 23:26:21 +0000 |
commit | d76d7473d3561d7310d8bc60d05f055c9956cb41 (patch) | |
tree | 6547420571c791d2a99a095e606bc63c87c11e46 /Auth/OpenID/SQLStore.php | |
parent | 57e7b7b67fa970eabcf217d5f394b2f193310c5e (diff) | |
download | php-openid-d76d7473d3561d7310d8bc60d05f055c9956cb41.zip php-openid-d76d7473d3561d7310d8bc60d05f055c9956cb41.tar.gz php-openid-d76d7473d3561d7310d8bc60d05f055c9956cb41.tar.bz2 |
[project @ Fixed association GC bug in SQL Store]
Diffstat (limited to 'Auth/OpenID/SQLStore.php')
-rw-r--r-- | Auth/OpenID/SQLStore.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Auth/OpenID/SQLStore.php b/Auth/OpenID/SQLStore.php index 45a1c16..f685136 100644 --- a/Auth/OpenID/SQLStore.php +++ b/Auth/OpenID/SQLStore.php @@ -445,14 +445,19 @@ class Auth_OpenID_SQLStore extends Auth_OpenID_OpenIDStore { */ function _get_assocs($server_url) { - return $this->isError( - $this->connection->getAll($this->sql['get_assocs'], - array($server_url))); + $result = $this->connection->getAll($this->sql['get_assocs'], + array($server_url)); + + if ($this->isError($result)) { + return array(); + } else { + return $result; + } } function removeAssociation($server_url, $handle) { - if (!$this->getAssociation($server_url, $handle)) { + if ($this->_get_assoc($server_url, $handle) == null) { return false; } |