Skip to content

Commit 9000ebb

Browse files
committed
fix: setting hour to 0
1 parent 4f4e86e commit 9000ebb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Listener/SaveUser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public function handle(Saving $event)
6666
}
6767
}
6868

69-
if ($hour = Arr::get($attributes, 'digestHour')) {
69+
if (Arr::has($attributes, 'digestHour')) {
70+
$hour = Arr::get($attributes, 'digestHour');
71+
7072
// Very simple access control, for now you can only edit yourself, just like regular JSON user settings
7173
if ($event->user->id !== $event->actor->id) {
7274
throw new PermissionDeniedException();

0 commit comments

Comments
 (0)