Skip to content

Commit

Permalink
Fix distance display
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Mar 18, 2016
1 parent 97867c4 commit 923dda3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions table-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,8 @@
print '<br /><span class="airport_time">'.$departure_airport_time.'</span>'."\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 '<br/><i>'.$distance.'km</i>';
}
Expand Down

0 comments on commit 923dda3

Please sign in to comment.