From: Leslie Michael Orchard Date: Wed, 18 Feb 2009 04:09:57 +0000 (-0500) Subject: Attempt to access non-existent OPENID_COOKIE_KEY cookie causing a warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5bb32ccfd0d7bb813c8b35cfb0411625418c5402;p=quix0rs-gnu-social.git Attempt to access non-existent OPENID_COOKIE_KEY cookie causing a warning --- diff --git a/lib/openid.php b/lib/openid.php index 8605737026..5c3d460daf 100644 --- a/lib/openid.php +++ b/lib/openid.php @@ -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;