mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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
|
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;
|
return false;
|
||||||
|
|
||||||
if (Carbon::now()->startOfDay()->eq($this->addTimeInterval($last_sent_date, $endless_reminder_frequency_id))) {
|
if (Carbon::now()->startOfDay()->eq($this->addTimeInterval($last_sent_date, $endless_reminder_frequency_id))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user