summaryrefslogtreecommitdiff
path: root/includes/mailer
diff options
context:
space:
mode:
Diffstat (limited to 'includes/mailer')
-rw-r--r--includes/mailer/shifts_mailer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/mailer/shifts_mailer.php b/includes/mailer/shifts_mailer.php
index 5304a897..37b26838 100644
--- a/includes/mailer/shifts_mailer.php
+++ b/includes/mailer/shifts_mailer.php
@@ -64,7 +64,7 @@ function mail_shift_change($old_shift, $new_shift)
$message .= $new_room['Name'] . "\n";
foreach ($users as $user) {
- $user = User::find($user->id);
+ $user = (new User())->forceFill($user);
if ($user->settings->email_shiftinfo) {
engelsystem_email_to_user(
$user,
@@ -92,7 +92,7 @@ function mail_shift_delete($shift)
$message .= $room['Name'] . "\n";
foreach ($users as $user) {
- $user = User::find($user->id);
+ $user = (new User())->forceFill($user);
if ($user->settings->email_shiftinfo) {
engelsystem_email_to_user($user, __('Your Shift was deleted'), $message, true);
}