mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 12:33:29 +01:00
[ticket/11103] Do not send PM received notifications to the author
(you won't be notified if you PM yourself) PHPBB3-11103
This commit is contained in:
parent
3839fe6902
commit
230e9d2e32
@ -85,7 +85,8 @@ class phpbb_notification_type_pm extends phpbb_notification_type_base
|
||||
$sql = 'SELECT *
|
||||
FROM ' . USER_NOTIFICATIONS_TABLE . "
|
||||
WHERE item_type = '" . self::get_item_type() . "'
|
||||
AND " . $this->db->sql_in_set('user_id', array_keys($pm['recipients']));
|
||||
AND " . $this->db->sql_in_set('user_id', array_keys($pm['recipients'])) . '
|
||||
AND user_id <> ' . $pm['from_user_id'];
|
||||
$result = $this->db->sql_query($sql);
|
||||
while ($row = $this->db->sql_fetchrow($result))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user