diff --git a/app/Http/Controllers/FleetsController.php b/app/Http/Controllers/FleetsController.php index 44011a16b..a5f8bda1f 100644 --- a/app/Http/Controllers/FleetsController.php +++ b/app/Http/Controllers/FleetsController.php @@ -36,7 +36,7 @@ class FleetsController extends Controller //Check for the fleet in the database $check = DB::table('Fleets')->where('fleet', $fleetUri)->first(); //If we do not find the fleet, let's create it. - if($check !== null) { + if($check === null) { $current = Carbon::now(); //If we are between 00:00 and 05:00, we want to set the end time for 0500 if($current->hour > 0 && $current->hour < 5) { diff --git a/app/Library/Fleet.php b/app/Library/Fleet.php index 79e69bd2a..c1c778570 100644 --- a/app/Library/Fleet.php +++ b/app/Library/Fleet.php @@ -79,6 +79,12 @@ class Fleet { ]); } + public function AddPilot($charId) { + //Get the ESI token for the FC to add the new pilot + $token = DB::table('EsiTokens')->where('character_id', $this->fcId)->first(); + //Create the ESI Call + } + public function RenderFleetDisplay() { if(!$this->HaveEsiScope($this->fcId, 'esi-fleets.read_fleet.v1')) { return false;