]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/AddressDetails.php
SetupClass: on --drop check if table exists first
[nominatim.git] / lib / AddressDetails.php
index 2d40c84f4efc35e90421798cc14f35a35bde3f68..783a0fdae673b8b155b5a823cd913d201196cd08 100644 (file)
@@ -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;
         }