diff options
author | Leslie Michael Orchard <l.m.orchard@pobox.com> | 2009-02-17 23:09:57 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-02-20 16:38:47 -0500 |
commit | 5bb32ccfd0d7bb813c8b35cfb0411625418c5402 (patch) | |
tree | 8e4c3345933487965f2634861bd24e9f3c28eecc | |
parent | 9a0e71f9bf3329004949a0cef61abb5a354c7688 (diff) |
Attempt to access non-existent OPENID_COOKIE_KEY cookie causing a warning
-rw-r--r-- | lib/openid.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/openid.php b/lib/openid.php index 860573702..5c3d460da 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; |