X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2723553593f2c52ebf981d958942cc473f3db7e3..77510f4a3bb7a40c85d27ed5c71b20ef79a3aa83:/lib-php/ParameterParser.php?ds=sidebyside 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)); }