X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/02ffa752ea4bb9d02d57d054b267119bf697b1d1..cbddfcde5b1613949d173ccd751efc4018969a18:/lib/ParameterParser.php diff --git a/lib/ParameterParser.php b/lib/ParameterParser.php index cb03c6cc..ae252d67 100644 --- a/lib/ParameterParser.php +++ b/lib/ParameterParser.php @@ -118,4 +118,15 @@ class ParameterParser $aLangPrefOrder['type'] = 'type'; return $aLangPrefOrder; } + + public function hasSetAny($aParams) + { + foreach ($aParams as $sParam) { + if ($this->getBool($sParam)) { + return true; + } + } + + return false; + } }