forked from GNUsocial/gnu-social
Fixed PHP Notice "Use of undefined constant session_name - assumed 'session_name'"
This commit is contained in:
parent
45ad4cfe72
commit
b2d2b19d3a
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user