aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorNathan <exreaction@phpbb.com>2012-07-04 20:52:07 -0500
committerNathan <exreaction@phpbb.com>2012-07-10 12:34:39 -0500
commit0f4956b280468e8890b1c84df41d7bb1eb2447c5 (patch)
tree21cc0c371ded170180c1c2e63509828fa770fa71 /phpBB/viewtopic.php
parent6f4538c676ebd3b6e299a606a04f672698ebc487 (diff)
downloadforums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.tar
forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.tar.gz
forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.tar.bz2
forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.tar.xz
forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.zip
[ticket/8323] Do not allow sending PMs to Inactive users
PHPBB3-8323
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 10ec6f4ee7..49ed785ec7 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1497,7 +1497,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
)));
// Can this user receive a Private Message?
- $can_receive_pm = ($user_cache[$poster_id]['user_type'] <> USER_IGNORE && (($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || ($user_cache[$poster_id]['allow_pm'] && in_array($poster_id, $can_receive_pm_list) && !in_array($poster_id, $banned_users))) ? true : false;
+ $can_receive_pm = ($user_cache[$poster_id]['user_type'] <> USER_IGNORE && $user_cache[$poster_id]['user_type'] <> USER_INACTIVE && (($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || ($user_cache[$poster_id]['allow_pm'] && in_array($poster_id, $can_receive_pm_list) && !in_array($poster_id, $banned_users))) ? true : false;
//
$postrow = array(