aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2015-08-05 13:45:02 +0200
committerAndreas Fischer <bantu@phpbb.com>2015-08-05 13:45:02 +0200
commit452c8bef28b363d50869421cf3346c23a25b6148 (patch)
tree2a616c9b53cce04821a123e4e5f437e487f5c7cf /phpBB/phpbb/notification
parent50cf610eb6738d2577c44f423c072727451b70f4 (diff)
parent4aac578908b5bd2d1e176172b37c72828022f460 (diff)
downloadforums-452c8bef28b363d50869421cf3346c23a25b6148.tar
forums-452c8bef28b363d50869421cf3346c23a25b6148.tar.gz
forums-452c8bef28b363d50869421cf3346c23a25b6148.tar.bz2
forums-452c8bef28b363d50869421cf3346c23a25b6148.tar.xz
forums-452c8bef28b363d50869421cf3346c23a25b6148.zip
Merge branch '3.1.x'
* 3.1.x: [ticket/13711] Notifications are sent to inactive users
Diffstat (limited to 'phpBB/phpbb/notification')
-rw-r--r--phpBB/phpbb/notification/method/messenger_base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/notification/method/messenger_base.php b/phpBB/phpbb/notification/method/messenger_base.php
index 74a1811155..61119b9882 100644
--- a/phpBB/phpbb/notification/method/messenger_base.php
+++ b/phpBB/phpbb/notification/method/messenger_base.php
@@ -91,7 +91,7 @@ abstract class messenger_base extends \phpbb\notification\method\base
$user = $this->user_loader->get_user($notification->user_id);
- if ($user['user_type'] == USER_IGNORE || in_array($notification->user_id, $banned_users))
+ if ($user['user_type'] == USER_IGNORE || ($user['user_type'] == USER_INACTIVE && $user['user_inactive_reason'] == INACTIVE_MANUAL) || in_array($notification->user_id, $banned_users))
{
continue;
}