From: Jeffery To Date: Sun, 2 Aug 2009 11:36:09 +0000 (+0800) Subject: Fixed PHP Notice "Use of undefined constant session_name - assumed 'session_name'" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b2d2b19d3a8fae84e1bc6532661c71ac180eceec;p=quix0rs-gnu-social.git Fixed PHP Notice "Use of undefined constant session_name - assumed 'session_name'" --- diff --git a/lib/util.php b/lib/util.php index d784bb7933..db794181ca 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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()) {