summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-08-02 19:36:09 +0800
committerJeffery To <jeffery.to@gmail.com>2009-08-02 19:36:09 +0800
commitb2d2b19d3a8fae84e1bc6532661c71ac180eceec (patch)
tree9a0125a7065ba96e3c0d5ecfeb77df695aa3fe7a /lib/util.php
parent45ad4cfe7253d1cd2da219378fd714644c906f53 (diff)
Fixed PHP Notice "Use of undefined constant session_name - assumed 'session_name'"
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index d784bb793..db794181c 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()) {