mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
unit tests for ParameterParser::hasSetAny
This commit is contained in:
@@ -119,10 +119,10 @@ class ParameterParser
|
||||
return $aLangPrefOrder;
|
||||
}
|
||||
|
||||
public function hasSetAny($aParams)
|
||||
public function hasSetAny($aParamNames)
|
||||
{
|
||||
foreach ($aParams as $sParam) {
|
||||
if ($this->getBool($sParam)) {
|
||||
foreach ($aParamNames as $sName) {
|
||||
if ($this->getBool($sName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user