fix issue in PhpHelper::trimArray() returning an empty array, fixes #751

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2020-01-03 23:24:58 +01:00
parent dd2782771a
commit a5287726a4
3 changed files with 26 additions and 3 deletions

View File

@@ -374,7 +374,7 @@ class PhpHelper
$returnval = array();
if (is_array($source)) {
$source = array_map('trim', $source);
$source = array_filter($source, function ($value) {
$returnval = array_filter($source, function ($value) {
return $value !== '';
});
} else {