X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a932855f6f4def45d2d403f34b0200bc826546e9..b5480f6e366be7c7d06d8444acc4cfd6a1aa31e2:/lib/PlaceLookup.php diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index 0a285a6a..58510e26 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -2,8 +2,8 @@ namespace Nominatim; -require_once(CONST_BasePath.'/lib/AddressDetails.php'); -require_once(CONST_BasePath.'/lib/Result.php'); +require_once(CONST_LibDir.'/AddressDetails.php'); +require_once(CONST_LibDir.'/Result.php'); class PlaceLookup { @@ -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;