From 1d7d906771d5594e3ecefe3e1f330f9b72c4e720 Mon Sep 17 00:00:00 2001 From: lavigor Date: Thu, 13 Sep 2018 18:53:00 +0300 Subject: [PATCH] [ticket/13713] Fix variable name in controller PHPBB3-13713 --- phpBB/phpbb/mention/controller/mention.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/mention/controller/mention.php b/phpBB/phpbb/mention/controller/mention.php index 42e0d217ef..eec3fbc5d1 100644 --- a/phpBB/phpbb/mention/controller/mention.php +++ b/phpBB/phpbb/mention/controller/mention.php @@ -52,16 +52,16 @@ class mention $keyword = $this->request->variable('keyword', '', true); $topic_id = $this->request->variable('topic_id', 0); $names = []; - $hasNamesRemaining = false; + $has_names_remaining = false; foreach ($this->mention_sources as $source) { - $hasNamesRemaining = !$source->get($names, $keyword, $topic_id) || $hasNamesRemaining; + $has_names_remaining = !$source->get($names, $keyword, $topic_id) || $has_names_remaining; } return new JsonResponse([ 'names' => array_values($names), - 'all' => !$hasNamesRemaining, + 'all' => !$has_names_remaining, ]); } }