mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Refactored Sessions class (#656)
This commit is contained in:
parent
4d496ba645
commit
58cc723e4b
15 changed files with 34 additions and 35 deletions
|
@ -70,7 +70,7 @@ if ($logged_in && empty($gen_simple_header) && !defined('IN_ADMIN')) {
|
|||
if ($userdata['user_last_privmsg'] > $userdata['user_lastvisit'] && defined('IN_PM')) {
|
||||
$userdata['user_last_privmsg'] = $userdata['user_lastvisit'];
|
||||
|
||||
\TorrentPier\Legacy\Sessions::db_update_userdata($userdata, array(
|
||||
\TorrentPier\Sessions::db_update_userdata($userdata, array(
|
||||
'user_last_privmsg' => $userdata['user_lastvisit'],
|
||||
));
|
||||
|
||||
|
@ -93,7 +93,7 @@ if ($logged_in && empty($gen_simple_header) && !defined('IN_ADMIN')) {
|
|||
if ($userdata['user_unread_privmsg'] != $real_unread_pm_count) {
|
||||
$userdata['user_unread_privmsg'] = $real_unread_pm_count;
|
||||
|
||||
\TorrentPier\Legacy\Sessions::db_update_userdata($userdata, array(
|
||||
\TorrentPier\Sessions::db_update_userdata($userdata, array(
|
||||
'user_unread_privmsg' => $real_unread_pm_count,
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue