Skip to content

Commit cc171e9

Browse files
authored
Check for session before notifying in UpdateUsersTimezone (jamesmills#74)
1 parent b03f493 commit cc171e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listeners/Auth/UpdateUsersTimezone.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function handle($event)
6565
*/
6666
private function notify(Location $geoip_info)
6767
{
68-
if (config('timezone.flash') == 'off') {
68+
if (request()->hasSession() && config('timezone.flash') == 'off') {
6969
return;
7070
}
7171

0 commit comments

Comments
 (0)