Skip to content

Commit

Permalink
Merge pull request #42410 from nextcloud/backport/42406/stable28
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Dec 21, 2023
2 parents cbc8121 + 4da91f5 commit cd596f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/CalDAV/Reminder/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private function prepareNotificationSubject(INotification $notification): void {
$components[] = $this->l10n->n('%n minute', '%n minutes', $diff->i);
}

if (!$this->hasPhpDatetimeDiffBug()) {
if (count($components) > 0 && !$this->hasPhpDatetimeDiffBug()) {
// Limiting to the first three components to prevent
// the string from getting too long
$firstThreeComponents = array_slice($components, 0, 2);
Expand Down

0 comments on commit cd596f0

Please sign in to comment.