[ticket/14078] Fix SQL error when editing a post with a quote

PHPBB3-14078
This commit is contained in:
Zoddo 2015-09-13 22:13:02 +02:00
parent 797e70380b
commit e9013db9b9

View file

@ -117,7 +117,7 @@ class quote extends \phpbb\notification\type\post
$notifications = array_keys($this->find_users_for_notification($post)); $notifications = array_keys($this->find_users_for_notification($post));
// Find the notifications we must delete // Find the notifications we must delete
$remove_notifications = array_diff($old_notifications, array_keys($notifications)); $remove_notifications = array_diff(array_keys($old_notifications), array_keys($notifications));
// Find the notifications we must add // Find the notifications we must add
$add_notifications = array(); $add_notifications = array();