mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/13713] Fix variable name in controller
PHPBB3-13713
This commit is contained in:
parent
652e5e0753
commit
1d7d906771
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue