echo "<td>".$aRow['sPostcode']."</td>";
echo "<td>".$aRow['sHouseNumber']."</td>";
- echo "<td>".$aRow['oNear']->lat()."</td>";
- echo "<td>".$aRow['oNear']->lon()."</td>";
- echo "<td>".$aRow['fRadius']."</td>";
+ if ($aRow['oNear']) {
+ echo "<td>".$aRow['oNear']->lat()."</td>";
+ echo "<td>".$aRow['oNear']->lon()."</td>";
+ echo "<td>".$aRow['oNear']->radius()."</td>";
+ } else {
+ echo "<td></td><td></td><td></td>";
+ }
echo "</tr>";
}