mirror of
https://github.com/nextcloud/server.git
synced 2026-03-06 15:31:07 -05:00
Merge pull request #42410 from nextcloud/backport/42406/stable28
This commit is contained in:
commit
cd596f00cd
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ class Notifier implements INotifier {
|
|||
$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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue