aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/captcha/plugins/qa.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/phpbb/captcha/plugins/qa.php b/phpBB/phpbb/captcha/plugins/qa.php
index 12da64c750..824e6db3b0 100644
--- a/phpBB/phpbb/captcha/plugins/qa.php
+++ b/phpBB/phpbb/captcha/plugins/qa.php
@@ -830,12 +830,11 @@ class qa
// Convert answers into array and filter if answers are set
if (strlen($answers))
{
- $answers = array_filter(explode("\n", $answers), function ($value) {
- return trim($value) !== '';
+ $answers = array_filter(array_map('trim', explode("\n", $answers)), function ($value) {
+ return $value !== '';
});
}
-
$question = array(
'question_text' => request_var('question_text', '', true),
'strict' => request_var('strict', false),