]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed PHP Notice "Use of undefined constant session_name - assumed 'session_name'"
authorJeffery To <jeffery.to@gmail.com>
Sun, 2 Aug 2009 11:36:09 +0000 (19:36 +0800)
committerJeffery To <jeffery.to@gmail.com>
Sun, 2 Aug 2009 11:36:09 +0000 (19:36 +0800)
lib/util.php

index d784bb79333f49e6157c85894f424ccf5f5f5a47..db794181ca63d75abf23e5ddf23cf9503124ef74 100644 (file)
@@ -140,7 +140,7 @@ function common_have_session()
 function common_ensure_session()
 {
     $c = null;
-    if (array_key_exists(session_name, $_COOKIE)) {
+    if (array_key_exists(session_name(), $_COOKIE)) {
         $c = $_COOKIE[session_name()];
     }
     if (!common_have_session()) {