aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorNathan <exreaction@phpbb.com>2012-07-10 09:58:10 -0500
committerNathan <exreaction@phpbb.com>2012-07-10 12:34:40 -0500
commit362ba43f18c07c70855e72ebfaea222e04af1183 (patch)
treea18462f3194d687e7e13c42b90d2af8daff0cd8d /phpBB/viewtopic.php
parent0f4956b280468e8890b1c84df41d7bb1eb2447c5 (diff)
downloadforums-362ba43f18c07c70855e72ebfaea222e04af1183.tar
forums-362ba43f18c07c70855e72ebfaea222e04af1183.tar.gz
forums-362ba43f18c07c70855e72ebfaea222e04af1183.tar.bz2
forums-362ba43f18c07c70855e72ebfaea222e04af1183.tar.xz
forums-362ba43f18c07c70855e72ebfaea222e04af1183.zip
[ticket/8323] Allow sending PMs to temporarily banned users
Added an argument to the phpbb_get_banned_user_ids() function to allow specifying a banned end time (default true for current functionality, false for only permanent bans, timestamp to find banned until a specified time) PHPBB3-8323
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 49ed785ec7..362451fd83 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1321,8 +1321,8 @@ if ($bbcode_bitfield !== '')
$can_receive_pm_list = $auth->acl_get_list(array_keys($user_cache), 'u_readpm');
$can_receive_pm_list = (empty($can_receive_pm_list) || !isset($can_receive_pm_list[0]['u_readpm'])) ? array() : $can_receive_pm_list[0]['u_readpm'];
-// Get the list of banned users
-$banned_users = phpbb_get_banned_user_ids(array_keys($user_cache));
+// Get the list of permanently banned users
+$banned_users = phpbb_get_banned_user_ids(array_keys($user_cache), false);
$i_total = sizeof($rowset) - 1;
$prev_post_id = '';