diff options
Diffstat (limited to 'apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php')
-rw-r--r-- | apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php b/apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php index 6afe1ec5e37..6e7cc7928ab 100644 --- a/apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php +++ b/apps/updatenotification/lib/BackgroundJob/UpdateAvailableNotifications.php @@ -171,7 +171,7 @@ class UpdateAvailableNotifications extends TimedJob { return; } - if ($lastNotification !== false) { + if ($lastNotification !== '') { // Delete old updates $this->deleteOutdatedNotifications($app, $lastNotification); } @@ -213,14 +213,12 @@ class UpdateAvailableNotifications extends TimedJob { $groupToNotify = $this->groupManager->get($group); if ($groupToNotify instanceof IGroup) { foreach ($groupToNotify->getUsers() as $user) { - $this->users[$user->getUID()] = true; + $this->users[] = $user->getUID(); } } } - $this->users = array_keys($this->users); - - return $this->users; + return array_unique($this->users); } /** |