ParameterParser: getStringList removes empty strings

This commit is contained in:
marc tobias
2018-03-06 14:51:48 +01:00
parent 47258f40ea
commit 3ef4c4fbe7
2 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,8 @@ class ParameterParser
$sValue = $this->getString($sName);
if ($sValue) {
return explode(',', $sValue);
// removes all NULL, FALSE and Empty Strings but leaves 0 (zero) values
return array_values(array_filter(explode(',', $sValue), 'strlen'));
}
return $aDefault;