mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01:00
Merge pull request #4267 from GregRyckman/ticket/14572
[ticket/14572] Fix quote notification deletion
This commit is contained in:
commit
dfc2168d31
@ -115,14 +115,14 @@ class quote extends \phpbb\notification\type\post
|
||||
));
|
||||
|
||||
// Find the new users to notify
|
||||
$notifications = array_keys($this->find_users_for_notification($post));
|
||||
$notifications = $this->find_users_for_notification($post);
|
||||
|
||||
// Find the notifications we must delete
|
||||
$remove_notifications = array_diff(array_keys($old_notifications), array_keys($notifications));
|
||||
|
||||
// Find the notifications we must add
|
||||
$add_notifications = array();
|
||||
foreach (array_diff(array_keys($notifications), $old_notifications) as $user_id)
|
||||
foreach (array_diff(array_keys($notifications), array_keys($old_notifications)) as $user_id)
|
||||
{
|
||||
$add_notifications[$user_id] = $notifications[$user_id];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user