mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13713] Fix variable name in controller
PHPBB3-13713
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user