Typo, session_name is a function.

This commit is contained in:
Adrian Lang 2009-08-10 15:24:27 +02:00
parent 5ba46186b7
commit d0793c0f44

View File

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