diff --git a/lib/DigestSender.php b/lib/DigestSender.php index 17af79056..ec99ef99d 100644 --- a/lib/DigestSender.php +++ b/lib/DigestSender.php @@ -131,8 +131,8 @@ public function sendDigestForUser(IUser $user, int $now, string $timezone, strin $this->activityManager->setCurrentUserId($uid); ['count' => $count, 'max' => $lastActivityId] = $this->data->getActivitySince($uid, $lastSend, true); - $count = (int) $count; - $lastActivityId = (int) $lastActivityId; + $count = (int)$count; + $lastActivityId = (int)$lastActivityId; if ($count === 0) { return; } @@ -198,7 +198,7 @@ public function sendDigestForUser(IUser $user, int $now, string $timezone, strin $this->activityManager->setCurrentUserId(null); try { $this->mailer->send($message); - $this->config->setUserValue($user->getUID(), 'activity', 'activity_digest_last_send', (string) $lastActivityId); + $this->config->setUserValue($uid, 'activity', 'activity_digest_last_send', (string)$lastActivityId); } catch (\Exception $e) { $this->logger->error($e->getMessage()); return; @@ -219,9 +219,9 @@ protected function getHTMLSubject(IEvent $event): string { $placeholders[] = '{' . $placeholder . '}'; if ($parameter['type'] === 'file') { - $replacement = (string) $parameter['path']; + $replacement = (string)$parameter['path']; } else { - $replacement = (string) $parameter['name']; + $replacement = (string)$parameter['name']; } if (isset($parameter['link'])) {