From 53ab19a47d6c5a48635f6bff412d94e1e4bcfd0f Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Mon, 22 Jul 2024 18:47:40 +0300 Subject: [PATCH] Update PirepService (#1856) Closes #1855 --- app/Services/PirepService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/PirepService.php b/app/Services/PirepService.php index c7e73fc52..fd0c7d7b4 100644 --- a/app/Services/PirepService.php +++ b/app/Services/PirepService.php @@ -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; }