summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/Notification/BackgroundJob.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/updatenotification/lib/Notification/BackgroundJob.php')
-rw-r--r--apps/updatenotification/lib/Notification/BackgroundJob.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/updatenotification/lib/Notification/BackgroundJob.php b/apps/updatenotification/lib/Notification/BackgroundJob.php
index 08142d5b00b..285903d398b 100644
--- a/apps/updatenotification/lib/Notification/BackgroundJob.php
+++ b/apps/updatenotification/lib/Notification/BackgroundJob.php
@@ -118,7 +118,7 @@ class BackgroundJob extends TimedJob {
->setSubject('connection_error', ['days' => $numDays]);
foreach ($this->getUsersToNotify() as $uid) {
- $notification->setUser($uid);
+ $notification->setUser((string) $uid);
$this->notificationManager->notify($notification);
}
} catch (\InvalidArgumentException $e) {
@@ -186,7 +186,7 @@ class BackgroundJob extends TimedJob {
}
foreach ($this->getUsersToNotify() as $uid) {
- $notification->setUser($uid);
+ $notification->setUser((string) $uid);
$this->notificationManager->notify($notification);
}
} catch (\InvalidArgumentException $e) {