Update sessions.php

This commit is contained in:
Roman Kelesidis 2024-01-02 13:38:11 +07:00
parent df102a72c2
commit 7c991465cd

View File

@ -512,7 +512,7 @@ class user_common
bb_setcookie(COOKIE_DBG, md5(md5(COOKIE_DBG)), COOKIE_SESSION); // Making DBG_USER as true
}
// Unset sql debug cookies
// Unset sql debug cookies if SQL_DEBUG is disabled or DBG_USER cookie not present
if (!SQL_DEBUG || !DBG_USER)
{
foreach (array('explain', 'sql_log', 'sql_log_full') as $cookie)