X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bc63f10057dd3a9b2c6abd300072f2068415d3f2..ccf119206d56a024f21cde36c729e4b7da4283d1:/lib-php/ParameterParser.php 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)); }