Skip to content

Commit

Permalink
Fix no tickets selected returns an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
JapSeyz committed Aug 29, 2016
1 parent 28a8bfe commit e881e7e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Http/Controllers/EventCheckoutController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ public function postValidateTickets(Request $request, $event_id)

$event = Event::findOrFail($event_id);

if (!$request->has('tickets')) {
return response()->json([
'status' => 'error',
'message' => 'No tickets selected',
]);
}

$ticket_ids = $request->get('tickets');

/*
Expand Down

0 comments on commit e881e7e

Please sign in to comment.