]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/PlaceLookup.php
Merge pull request #2080 from donalhunt/fix-Migration.md-typos
[nominatim.git] / lib / PlaceLookup.php
index 0a285a6a78b69ab7b5b9f16c8493a7f1c22718bb..a2f39ea348ba466e21111a1e6f65395eb8343f57 100644 (file)
@@ -456,6 +456,13 @@ class PlaceLookup
             $aResults[$aPlace['place_id']] = $aPlace;
         }
 
+        $aResults = array_filter(
+            $aResults,
+            function ($v) {
+                return !($v instanceof Result);
+            }
+        );
+
         Debug::printVar('Places', $aResults);
 
         return $aResults;