From 1b9432f0a78f7dd99e4d33aa6272dfa0ba2ad703 Mon Sep 17 00:00:00 2001 From: Samuel Volant Date: Tue, 22 Oct 2024 14:40:52 +0200 Subject: [PATCH] Update dell.class.php Corrected condition for date --- inc/dell.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/dell.class.php b/inc/dell.class.php index 611e5b4..fb92f92 100644 --- a/inc/dell.class.php +++ b/inc/dell.class.php @@ -140,7 +140,7 @@ public function getStartDate($contents) foreach ($info[0]['entitlements'] as $d) { if ($d['startDate']) { $date = new \DateTime($d['startDate']); - if ($max_date == false || $date > $max_date) { + if ($max_date == false || $date < $max_date) { $max_date = $date; } }