X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/59540972b64aff5351e4fc8654d5c1100c88dfc6..1812c89c31b6e163a14144ae05fff34b97634367:/lib/PlaceLookup.php diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index f013fe17..6da82fd8 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -51,6 +51,10 @@ $sSQL .= " from placex where place_id = ".(int)$this->iPlaceID; $aPlace = $this->oDB->getRow($sSQL); + if (PEAR::IsError($aPlace)) + { + failInternalError("Could not lookup place.", $sSQL, $aPlace); + } if (!$aPlace['place_id']) return null; if ($this->bAddressDetails)