Fix due status calculation

Signed-off-by: Raul <raul@nextcloud.com>
This commit is contained in:
Raul
2023-02-15 13:18:11 +01:00
committed by Julius Härtl
parent 99f5e8b76e
commit 7575bd0bf7
4 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ class OverviewService {
$diffDays = $card->getDaysUntilDue();
$key = 'later';
if ($card->getDuedate() === null) {
if ($diffDays === null) {
$key = 'nodue';
} elseif ($diffDays < 0) {
$key = 'overdue';