This commit is contained in:
2018-11-13 22:08:30 -06:00
parent 622be54fad
commit 76319ae4d4
2 changed files with 10 additions and 2 deletions

View File

@@ -101,8 +101,11 @@ class FleetsController extends Controller
$fleet = DB::table('Fleets')->where('fleet', $fleetId)->get();
//Add a pilot to the fleet
$error = $newPilot->AddPilot($fleet[0]->character_id, $charId);
return redirect('/fleets/display');
if($error) {
return view('fleets.displayfleet')->with($error)->with('data', null);
} else {
return redirect('/fleets/display');
}
}
public function updateFleet() {