From bb650a80c1dcd9eca34c32524c692a84c5be5b15 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 10 Jul 2024 16:58:57 +1000 Subject: [PATCH] Static analysis --- app/Utils/Traits/MakesReminders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/Traits/MakesReminders.php b/app/Utils/Traits/MakesReminders.php index 232c15525d8d..119351ba4d00 100644 --- a/app/Utils/Traits/MakesReminders.php +++ b/app/Utils/Traits/MakesReminders.php @@ -82,7 +82,7 @@ trait MakesReminders private function checkEndlessReminder($last_sent_date, $endless_reminder_frequency_id): bool { - if(!$last_sent_date) + if(is_null($last_sent_date) || !$last_sent_date) return false; if (Carbon::now()->startOfDay()->eq($this->addTimeInterval($last_sent_date, $endless_reminder_frequency_id))) {