1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Static analysis

This commit is contained in:
David Bomba 2024-07-10 16:58:57 +10:00
parent ef9b284202
commit bb650a80c1

View File

@ -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))) {