1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-21 18:44:37 +02:00

[ticket/11103] Mark Private Messages as read

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-14 16:20:15 -05:00
parent f083c6d776
commit 40bc3b1f19

View File

@ -876,7 +876,11 @@ function update_unread_status($unread, $msg_id, $user_id, $folder_id)
return;
}
global $db, $user;
global $db, $user, $phpbb_container;
// Mark the PM as read
$notifications = $phpbb_container->get('notifications');
$notifications->mark_notifications_read('pm', $msg_id, $user_id);
$sql = 'UPDATE ' . PRIVMSGS_TO_TABLE . "
SET pm_unread = 0