diff --git a/library/includes/page_header.php b/library/includes/page_header.php index b1571f50..20f45cc1 100644 --- a/library/includes/page_header.php +++ b/library/includes/page_header.php @@ -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'))