mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Static analysis
This commit is contained in:
parent
ef9b284202
commit
bb650a80c1
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user