From 923dda36e38dd8e3d811c018b4bd831cd6b52d4a Mon Sep 17 00:00:00 2001 From: Ycarus Date: Fri, 18 Mar 2016 15:36:29 +0100 Subject: [PATCH] Fix distance display --- table-output.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/table-output.php b/table-output.php index 1b7d47f7..20f355f8 100644 --- a/table-output.php +++ b/table-output.php @@ -501,6 +501,8 @@ print '
'.$departure_airport_time.''."\n"; } if ($spotter_item['departure_airport'] != 'NA') { + require_once(dirname(__FILE__).'/require/class.Spotter.php'); + $Spotter = new Spotter(); $distance = $Spotter->getAirportDistance($spotter_item['departure_airport'],$spotter_item['latitude'],$spotter_item['longitude']); if ($distance != '') echo '
'.$distance.'km'; }