Skip to content

Commit

Permalink
Update PirepService (#1856)
Browse files Browse the repository at this point in the history
Closes #1855
  • Loading branch information
FatihKoz authored Jul 22, 2024
1 parent 2f8a8df commit 53ab19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/PirepService.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function file(Pirep $pirep, array $attrs = [], array $fields = [], array

// Copy some fields over from Flight/SimBrief if we have it
if ($pirep->flight) {
$pirep->planned_distance = isset($pirep->flight->simbrief) ? $pirep->flight->simbrief->xml->general->air_distance : $pirep->flight->distance;
$pirep->planned_distance = isset($pirep->simbrief) ? $pirep->simbrief->xml->general->air_distance : $pirep->flight->distance;
$pirep->planned_flight_time = $pirep->flight->flight_time;
}

Expand Down

0 comments on commit 53ab19a

Please sign in to comment.