Fix broken PM (Private messages) (#1085)

This commit is contained in:
Cønstantine Kovalensky 2023-11-12 01:48:44 +04:00 committed by GitHub
commit 5f8d7faf83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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;