Skip to content

Commit

Permalink
Fix #325
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Aug 31, 2018
1 parent 9f44e89 commit 1d780dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion require/class.SpotterImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,14 @@ public function add($line) {
if ((isset($timediff) && !isset($timediff_archive)) || (isset($this->all_flights[$id]['archive_latitude']) && isset($this->all_flights[$id]['archive_longitude']) && isset($this->all_flights[$id]['livedb_latitude']) && isset($this->all_flights[$id]['livedb_longitude']))) {
if ((isset($timediff_archive) && $timediff_archive > $globalAircraftMaxUpdate)
|| (isset($line['format_source']) && $line['format_source'] == 'airwhere')
|| ((isset($this->all_flights[$id]['archive_latitude']) && isset($this->all_flights[$id]['archive_longitude']) && isset($this->all_flights[$id]['livedb_latitude']) && isset($this->all_flights[$id]['livedb_longitude'])&& !$Common->checkLine($this->all_flights[$id]['archive_latitude'],$this->all_flights[$id]['archive_longitude'],$this->all_flights[$id]['livedb_latitude'],$this->all_flights[$id]['livedb_longitude'],$line['latitude'],$line['longitude']))) {
|| (
(isset($this->all_flights[$id]['archive_latitude'])
&& isset($this->all_flights[$id]['archive_longitude'])
&& isset($this->all_flights[$id]['livedb_latitude'])
&& isset($this->all_flights[$id]['livedb_longitude']))
&& !$Common->checkLine($this->all_flights[$id]['archive_latitude'],$this->all_flights[$id]['archive_longitude'],$this->all_flights[$id]['livedb_latitude'],$this->all_flights[$id]['livedb_longitude'],$line['latitude'],$line['longitude'])
)
) {
$this->all_flights[$id]['archive_latitude'] = $line['latitude'];
$this->all_flights[$id]['archive_longitude'] = $line['longitude'];
$this->all_flights[$id]['putinarchive'] = true;
Expand Down

0 comments on commit 1d780dd

Please sign in to comment.