diff options
author | Jeffery To <jeffery.to@gmail.com> | 2009-08-02 19:36:09 +0800 |
---|---|---|
committer | Jeffery To <jeffery.to@gmail.com> | 2009-08-02 19:36:09 +0800 |
commit | b2d2b19d3a8fae84e1bc6532661c71ac180eceec (patch) | |
tree | 9a0125a7065ba96e3c0d5ecfeb77df695aa3fe7a | |
parent | 45ad4cfe7253d1cd2da219378fd714644c906f53 (diff) |
Fixed PHP Notice "Use of undefined constant session_name - assumed 'session_name'"
-rw-r--r-- | lib/util.php | 2 |
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()) { |