Skip to content

Commit

Permalink
Fix timezone controller bad return
Browse files Browse the repository at this point in the history
was returning null when preferences.timezone was not set (not sure how to get to that case)
  • Loading branch information
murrant committed Aug 3, 2023
1 parent 77fc6a3 commit 17764f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Ajax/TimezoneController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ public function set(Request $request): string
return $request->timezone;
}

return session('preferences.timezone');
return session('preferences.timezone', '');
}
}

0 comments on commit 17764f1

Please sign in to comment.