aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index b5a37e6bb3..b45dea5059 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -728,11 +728,16 @@ function on_page($num_items, $per_page, $start)
// to return both sets of arrays
function obtain_word_list(&$censors)
{
- global $db, $cache;
+ global $db, $cache, $user;
+
+ if (!$user->data['user_viewcensors'] && !$user->data['coppa'] && $config['allow_nocensors'])
+ {
+ return;
+ }
if ($cache->exists('word_censors'))
{
- $censors = $cache->get('word_censors'); // transfer to just if (!(...)) ? works fine for me
+ $censors = $cache->get('word_censors');
}
else
{