Skip to content

Commit

Permalink
Fixed accidental $next in conditional statement.
Browse files Browse the repository at this point in the history
$next($request) shouldn’t be conditional, otherwise the response will
be blank.
  • Loading branch information
Sasha Hilton authored and Sasha Hilton committed Feb 8, 2016
1 parent 275c8ab commit 0d1a64a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Http/Middleware/ApiGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ public function handle($request, Closure $next, $serializedApiMethods=null)

if($user_id !== 0)
Auth::loginUsingId($user_id);

return $next($request);
}
return $next($request);
}
}

0 comments on commit 0d1a64a

Please sign in to comment.