From 230e9d2e322e707c46c6d99c18a0591fb56b6f74 Mon Sep 17 00:00:00 2001 From: Nathan Guse Date: Tue, 16 Oct 2012 17:47:27 -0500 Subject: [PATCH] [ticket/11103] Do not send PM received notifications to the author (you won't be notified if you PM yourself) PHPBB3-11103 --- phpBB/includes/notification/type/pm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/notification/type/pm.php b/phpBB/includes/notification/type/pm.php index c2065fef99..dc4bd3b3a5 100644 --- a/phpBB/includes/notification/type/pm.php +++ b/phpBB/includes/notification/type/pm.php @@ -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)) {