From bb7543e68823456288fdddd684623fea46fbbc11 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Tue, 25 Apr 2023 14:43:33 -0400 Subject: [PATCH] fix bug in date comparisons --- lib/Auth/Source/FSFDrupalAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Auth/Source/FSFDrupalAuth.php b/lib/Auth/Source/FSFDrupalAuth.php index 74434e9..e04566b 100644 --- a/lib/Auth/Source/FSFDrupalAuth.php +++ b/lib/Auth/Source/FSFDrupalAuth.php @@ -414,7 +414,7 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase $member_type_id = $row['member_type_id']; $receive_date_obj = new \DateTime($row['receive_date']); - if ($receive_date_obj < $start_date_obj && $receive_date > $end_date_obj) { + if (($receive_date_obj > $start_date_obj) && ($receive_date < $end_date_obj)) { $total += $amount; } } -- 2.25.1