#18680020 : if association does not exists, it should return null (not association object)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7284 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-02-06 14:45:31 +00:00
parent ba88ecc443
commit 8c0d04d8b9

View file

@ -149,6 +149,7 @@ class Auth_OpenID_XEStore extends Auth_OpenID_OpenIDStore {
function getAssociation($server_url, $handle = null)
{
$assoc = $this->_get_assoc($server_url, $handle);
if(!$assoc) return null;
$assoc_o = new Auth_OpenID_Association($assoc->handle, $assoc->secret, $assoc->issued, $assoc->lifetime, $assoc->assoc_type);
return $assoc_o;
}