]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-jsonv2.php
don't have an address property in the return if we have not got address data
[nominatim.git] / lib / template / search-jsonv2.php
index 5e52238b73f029abc56a7e5e2f45994bfdc83919..cb09baa48dcbf7e6f634f0225cd4cce9df40c998 100644 (file)
@@ -47,7 +47,7 @@
                        $aPlace['icon'] = $aPointDetails['icon'];
                }
 
-               if (isset($aPointDetails['address']))
+               if (isset($aPointDetails['address']) && sizeof($aPointDetails['address'])>0)
                {
                        $aPlace['address'] = $aPointDetails['address'];
                 }