Update page_header.php

This commit is contained in:
Roman Kelesidis 2023-11-20 18:55:57 +07:00
parent 1c603b514a
commit bcb3064a2e

View File

@ -52,7 +52,7 @@ if (defined('SHOW_ONLINE') && SHOW_ONLINE)
}
// Info about new private messages
$icon_pm = $images['pm_no_new_msg'];
$icon_pm = !empty($images['pm_no_new_msg']) ? $images['pm_no_new_msg'] : '';
$pm_info = $lang['NO_NEW_PM'];
$have_new_pm = $have_unread_pm = 0;
@ -61,7 +61,7 @@ if ($logged_in && empty($gen_simple_header) && !defined('IN_ADMIN'))
if ($userdata['user_new_privmsg'])
{
$have_new_pm = $userdata['user_new_privmsg'];
$icon_pm = $images['pm_new_msg'];
$icon_pm = !empty($images['pm_new_msg']) ? $images['pm_new_msg'] : '';
$pm_info = declension($userdata['user_new_privmsg'], $lang['NEW_PMS_DECLENSION'], $lang['NEW_PMS_FORMAT']);
if ($userdata['user_last_privmsg'] > $userdata['user_lastvisit'] && defined('IN_PM'))