mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +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);
|
$keyword = $this->request->variable('keyword', '', true);
|
||||||
$topic_id = $this->request->variable('topic_id', 0);
|
$topic_id = $this->request->variable('topic_id', 0);
|
||||||
$names = [];
|
$names = [];
|
||||||
$hasNamesRemaining = false;
|
$has_names_remaining = false;
|
||||||
|
|
||||||
foreach ($this->mention_sources as $source)
|
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([
|
return new JsonResponse([
|
||||||
'names' => array_values($names),
|
'names' => array_values($names),
|
||||||
'all' => !$hasNamesRemaining,
|
'all' => !$has_names_remaining,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue