Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Aug 31, 2018
1 parent 69e311f commit 9f44e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion require/class.SpotterImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ 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')
|| !$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 9f44e89

Please sign in to comment.