X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/943e5fe6997f71709d344a73363021ffcefe3539..1bee151fe3ccfd21df1d809392d6eb52ce7925cb:/lib-php/ParameterParser.php?ds=inline diff --git a/lib-php/ParameterParser.php b/lib-php/ParameterParser.php index 98b95388..070be36c 100644 --- a/lib-php/ParameterParser.php +++ b/lib-php/ParameterParser.php @@ -70,7 +70,7 @@ class ParameterParser return $sDefault; } - if (!in_array($this->aParams[$sName], $aValues)) { + if (!in_array($this->aParams[$sName], $aValues, true)) { userError("Parameter '$sName' must be one of: ".join(', ', $aValues)); }