X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b944e8b1720552f02bea3363225e9625f099911f..aade8c75cb6036c85f4df36c810fbbcc07f43907:/lib/lib.php?ds=sidebyside diff --git a/lib/lib.php b/lib/lib.php index e569aa8b..482e9598 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -852,12 +852,12 @@ $sSQL .= ' ORDER BY ST_distance('.$sPointSQL.', geometry) ASC limit 1'; //var_dump($sSQL); $aPlace = $oDB->getRow($sSQL); - $iPlaceID = $aPlace['place_id']; - if (PEAR::IsError($iPlaceID)) + if (PEAR::IsError($aPlace)) { - var_Dump($sSQL, $iPlaceID); + var_Dump($sSQL, $aPlace); exit; } + $iPlaceID = $aPlace['place_id']; } // The point we found might be too small - use the address to find what it is a child of