X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e5eb7ecdc1e0dd054a3aa166d32391c115d20405..4b5e464e12473a7d06ab1ecaed8c507350959ee4:/lib/AddressDetails.php diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index 2d40c84f..783a0fda 100644 --- a/lib/AddressDetails.php +++ b/lib/AddressDetails.php @@ -14,10 +14,10 @@ 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 (!$sHousenumber) { + if (!isset($sHousenumber)) { $sHousenumber = -1; }