mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Update User.php
This commit is contained in:
parent
5d2ef86a36
commit
4ab7f9dcb4
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ class User
|
||||||
if (!isset($bb_cfg['dbg_users'][$this->data['user_id']]) && DBG_USER) {
|
if (!isset($bb_cfg['dbg_users'][$this->data['user_id']]) && DBG_USER) {
|
||||||
bb_setcookie(COOKIE_DBG, null);
|
bb_setcookie(COOKIE_DBG, null);
|
||||||
} elseif (isset($bb_cfg['dbg_users'][$this->data['user_id']]) && !DBG_USER) {
|
} elseif (isset($bb_cfg['dbg_users'][$this->data['user_id']]) && !DBG_USER) {
|
||||||
bb_setcookie(COOKIE_DBG, 1, COOKIE_SESSION);
|
bb_setcookie(COOKIE_DBG, hash('xxh128', $bb_cfg['dbg_users'][$this->data['user_id']]), COOKIE_SESSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unset sql debug cookies if SQL_DEBUG is disabled or DBG_USER cookie not present
|
// Unset sql debug cookies if SQL_DEBUG is disabled or DBG_USER cookie not present
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue