Skip to content

Commit

Permalink
Merge branch 'recaller-request-null' of https://github.com/rdrnnr87/f…
Browse files Browse the repository at this point in the history
…ramework into rdrnnr87-recaller-request-null
  • Loading branch information
taylorotwell committed Jan 31, 2017
2 parents b375161 + 7bbcb88 commit 84d4839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/SessionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ protected function userFromRecaller($recaller)
*/
protected function recaller()
{
if ($recaller = $this->request->cookies->get($this->getRecallerName())) {
if (! is_null($this->request) && $recaller = $this->request->cookies->get($this->getRecallerName())) {
return new Recaller($recaller);
}
}
Expand Down

0 comments on commit 84d4839

Please sign in to comment.