X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/27ea1bb42db0356a81eb9fadb5515f9abf2bb130..fca59b8d115a699623d49a929609224c60de37ba:/lib/lib.php?ds=sidebyside diff --git a/lib/lib.php b/lib/lib.php index a4e4aa6c..54c8c7d0 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -884,17 +884,7 @@ return $iPlaceID; } - function loadStructuredAddressElement(&$aStructuredQuery, &$iMinAddressRank, &$iMaxAddressRank, &$aAddressRankList, $aParams, $sKey, $iNewMinAddressRank, $iNewMaxAddressRank, $aItemListValues) + function addQuotes($s) { - if (!isset($_GET[$sKey])) return false; - $sValue = trim($_GET[$sKey]); - if (!$sValue) return false; - $aStructuredQuery[$sKey] = $sValue; - if ($iMinAddressRank == 0 && $iMaxAddressRank == 30) - { - $iMinAddressRank = $iNewMinAddressRank; - $iMaxAddressRank = $iNewMaxAddressRank; - } - if ($aItemListValues) $aAddressRankList = array_merge($aAddressRankList, $aItemListValues); - return true; + return "'".$s."'"; }