Attempt to access non-existent OPENID_COOKIE_KEY cookie causing a warning

This commit is contained in:
Leslie Michael Orchard 2009-02-17 23:09:57 -05:00 committed by Evan Prodromou
parent 9a0e71f9bf
commit 5bb32ccfd0
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ function oid_set_last($openid_url)
function oid_get_last()
{
if (empty($_COOKIE[OPENID_COOKIE_KEY])) {
return null;
}
$openid_url = $_COOKIE[OPENID_COOKIE_KEY];
if ($openid_url && strlen($openid_url) > 0) {
return $openid_url;