X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/524dc64ab77afc08ecaa5bc92e4237c89fb4bc86..1bee151fe3ccfd21df1d809392d6eb52ce7925cb:/lib-php/ParameterParser.php?ds=sidebyside diff --git a/lib-php/ParameterParser.php b/lib-php/ParameterParser.php index e70b47be..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)); } @@ -129,7 +129,8 @@ class ParameterParser return $aLangPrefOrder; } - private function addNameTag(&$aLangPrefOrder, $sTag) { + private function addNameTag(&$aLangPrefOrder, $sTag) + { $aLangPrefOrder[$sTag] = $sTag; $aLangPrefOrder['_place_'.$sTag] = '_place_'.$sTag; }