Fixed PHP Notice "Use of undefined constant session_name - assumed 'session_name'"

This commit is contained in:
Jeffery To 2009-08-02 19:36:09 +08:00
parent 45ad4cfe72
commit b2d2b19d3a
1 changed files with 1 additions and 1 deletions

View 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()) {