X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b612b9942109a08c6ff8f49e3327e015fec08e67..4b5e464e12473a7d06ab1ecaed8c507350959ee4:/lib/AddressDetails.php diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index b62335d1..783a0fda 100644 --- a/lib/AddressDetails.php +++ b/lib/AddressDetails.php @@ -14,7 +14,7 @@ class AddressDetails public function __construct(&$oDB, $iPlaceID, $sHousenumber, $mLangPref) { if (is_array($mLangPref)) { - $mLangPref = 'ARRAY['.join(',', array_map('getDBQuoted', $mLangPref)).']'; + $mLangPref = $oDB->getArraySQL($oDB->getDBQuotedList($mLangPref)); } if (!isset($sHousenumber)) {