]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
fix json output of empty arrays
[nominatim.git] / lib / Geocode.php
index 8b94e54938cf6ccc5fc623e9752e83765e3de3d3..80561d27fd18232b372b1f6b7d24f1c8fab68932 100644 (file)
                                        }
                                        else
                                        {
-                                               $aResult['sExtraTags'] = array();
+                                               $aResult['sExtraTags'] = (object) array();
                                        }
                                }
 
                                        }
                                        else
                                        {
-                                               $aResult['sNameDetails'] = array();
+                                               $aResult['sNameDetails'] = (object) array();
                                        }
                                }