mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Fix broken PM (Private messages) (#1085)
This commit is contained in:
parent
618a93e056
commit
5f8d7faf83
2 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ if ($logged_in && empty($gen_simple_header) && !defined('IN_ADMIN')) {
|
|||
GROUP BY privmsgs_to_userid
|
||||
");
|
||||
|
||||
$real_unread_pm_count = (int)$row['pm_count'] ?? 0;
|
||||
$real_unread_pm_count = (int)($row['pm_count'] ?? 0);
|
||||
|
||||
if ($userdata['user_unread_privmsg'] != $real_unread_pm_count) {
|
||||
$userdata['user_unread_privmsg'] = $real_unread_pm_count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue