X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/47258f40ea77b9d73c7bfcca1a3489d9adeb30f3..8d4a86635fe661717a17fe3bb7ff2cde8a784158:/lib/ParameterParser.php diff --git a/lib/ParameterParser.php b/lib/ParameterParser.php index feddc3aa..c9a97c25 100644 --- a/lib/ParameterParser.php +++ b/lib/ParameterParser.php @@ -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;