]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/openid.php
Attempt to access non-existent OPENID_COOKIE_KEY cookie causing a warning
[quix0rs-gnu-social.git] / 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;