diff options
| author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-16 17:47:27 -0500 |
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-16 17:47:27 -0500 |
| commit | 230e9d2e322e707c46c6d99c18a0591fb56b6f74 (patch) | |
| tree | 628514b51c16980d7c765c02950c867f65dc12e6 | |
| parent | 3839fe69027836d0c9083095208e4ed548a7ea38 (diff) | |
| download | forums-230e9d2e322e707c46c6d99c18a0591fb56b6f74.tar forums-230e9d2e322e707c46c6d99c18a0591fb56b6f74.tar.gz forums-230e9d2e322e707c46c6d99c18a0591fb56b6f74.tar.bz2 forums-230e9d2e322e707c46c6d99c18a0591fb56b6f74.tar.xz forums-230e9d2e322e707c46c6d99c18a0591fb56b6f74.zip | |
[ticket/11103] Do not send PM received notifications to the author
(you won't be notified if you PM yourself)
PHPBB3-11103
| -rw-r--r-- | phpBB/includes/notification/type/pm.php | 3 |
1 files changed, 2 insertions, 1 deletions
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)) { |
