]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-jsonv2.php
Merge branch 'master' of http://github.com/twain47/Nominatim
[nominatim.git] / lib / template / address-jsonv2.php
index 32fe0f13acf9661c280e0d6c346a27a4761ac0af..9624718273fadcc64679bf4a456150f1d75c9b7a 100644 (file)
@@ -26,7 +26,7 @@
 
                $aFilteredPlaces['display_name'] = $aPlace['langaddress'];
                 $aFilteredPlaces['name'] = $aPlace['placename'];
-               if ($bShowAddressDetails) $aFilteredPlaces['address'] = $aAddress;
+               if ($bShowAddressDetails && $aAddress && sizeof($aAddress)) $aFilteredPlaces['address'] = $aAddress;
        }
 
        javascript_renderData($aFilteredPlaces);