From 31b8437dc6088a1111e0ac6027701bae590e250f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 27 Feb 2018 15:29:10 +0200 Subject: [PATCH] Count error in ninja:send-reminders cron #1922 --- app/Ninja/Repositories/InvoiceRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Repositories/InvoiceRepository.php b/app/Ninja/Repositories/InvoiceRepository.php index aed41f0826..53e7f9eba9 100644 --- a/app/Ninja/Repositories/InvoiceRepository.php +++ b/app/Ninja/Repositories/InvoiceRepository.php @@ -1212,7 +1212,7 @@ class InvoiceRepository extends BaseRepository $frequencyId = $settings->frequency_id_reminder4; if (! $frequencyId || ! $account->enable_reminder4) { - return []; + return collect(); } $frequency = Utils::getFromCache($frequencyId, 'frequencies');