Merge branch 'dev' of https://github.com/nabeelio/phpvms into dev
This commit is contained in:
@@ -109,6 +109,11 @@ class SimBriefController
|
|||||||
|
|
||||||
$loadmax = $lfactor + $lfactorv;
|
$loadmax = $lfactor + $lfactorv;
|
||||||
$loadmax = $loadmax > 100 ? 100 : $loadmax;
|
$loadmax = $loadmax > 100 ? 100 : $loadmax;
|
||||||
|
// Failsafe for admins not defining load values for their flights
|
||||||
|
// and also leave the general settings empty, set loadmax to 100
|
||||||
|
if ($loadmax === 0) {
|
||||||
|
$loadmax = 100;
|
||||||
|
}
|
||||||
|
|
||||||
// Show the main simbrief form
|
// Show the main simbrief form
|
||||||
return view('flights.simbrief_form', [
|
return view('flights.simbrief_form', [
|
||||||
|
|||||||
Reference in New Issue
Block a user