From e41627d7635b6473287857f39d832c67ee0d9bbb Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 1 Mar 2023 15:43:26 +0100 Subject: [PATCH] fix(dashboard): Fix undefined array index fixes #4491 Signed-off-by: Marcel Klehr --- lib/Dashboard/DeckWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Dashboard/DeckWidget.php b/lib/Dashboard/DeckWidget.php index cdb5db1d8..0435b6125 100644 --- a/lib/Dashboard/DeckWidget.php +++ b/lib/Dashboard/DeckWidget.php @@ -117,7 +117,7 @@ class DeckWidget implements IAPIWidget, IButtonWidget, IIconWidget { $nowTimestamp = (new Datetime())->getTimestamp(); $sinceTimestamp = $since !== null ? (new Datetime($since))->getTimestamp() : null; $upcomingCards = array_filter($upcomingCards, static function (array $card) use ($nowTimestamp, $sinceTimestamp) { - if ($card['duedate']) { + if (isset($card['duedate'])) { $ts = (new Datetime($card['duedate']))->getTimestamp(); return $ts > $nowTimestamp && ($sinceTimestamp === null || $ts > $sinceTimestamp); }