]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Attempt to access non-existent OPENID_COOKIE_KEY cookie causing a warning
authorLeslie Michael Orchard <l.m.orchard@pobox.com>
Wed, 18 Feb 2009 04:09:57 +0000 (23:09 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 21:38:47 +0000 (16:38 -0500)
lib/openid.php

index 8605737026340cebfbc00e2d87ea615398af83e2..5c3d460dafdb7c2e7814663953f54eb7c5788f8f 100644 (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;