X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a932855f6f4def45d2d403f34b0200bc826546e9..2db751700e6b1872fd9f65fa725b59d00ee993c2:/lib/PlaceLookup.php?ds=sidebyside diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index 0a285a6a..a2f39ea3 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -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;