Skip to content

Commit

Permalink
Fix SessionGuard.php recaller function
Browse files Browse the repository at this point in the history
  • Loading branch information
briandotdev committed Jan 31, 2017
1 parent 17ee3fd commit 7bbcb88
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 7bbcb88

Please sign in to comment.