phpbb/phpbb3 — pull request #1318 by imkingdavid (2013-03-26 21:14:56+00:00)
Title: [ticket/11448] Use of $user_id parameter to mark a user's notifications read

The issue that was pointed out was that the $user_id parameter of phpbb_notification_manager::mark_notifications_read() was not being used.

After looking at it, the mark_notifications_read_by_parent() function also has a $user_id parameter, which is used in the SQL query. As such, implemented the $user_id variable into the query in mark_notifications_read() in much the same way.

Prior behavior appears to be that all notifications of the given type, from before the given time, from any user, and with the given item ID, would be marked read. Now, that behavior has been modified to ensure that the notifications are only marked read if they belong to the given user.

http://tracker.phpbb.com/browse/PHPBB3-11448