mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update sessions.php
This commit is contained in:
parent
c3ec2053dd
commit
dd6d3e3dfd
@ -509,6 +509,12 @@ class user_common
|
||||
bb_setcookie(COOKIE_DBG, 1, COOKIE_SESSION);
|
||||
}
|
||||
|
||||
// Unset debug cookie if user not in dbg_users array
|
||||
if (!isset($bb_cfg['dbg_users'][$this->data['user_id']]) && DBG_USER)
|
||||
{
|
||||
bb_setcookie(COOKIE_DBG, '', COOKIE_EXPIRED);
|
||||
}
|
||||
|
||||
// Unset sql debug cookies
|
||||
if (!SQL_DEBUG || !DBG_USER)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user