A free open source IT asset/license management system
Check for > 0 expected assets
snipe1a29d4f60f77
diff --git a/app/Console/Commands/SendExpectedCheckinAlerts.php b/app/Console/Commands/SendExpectedCheckinAlerts.phpindex 3c4b7ee523..1a2c6d09dd 100644--- a/app/Console/Commands/SendExpectedCheckinAlerts.php+++ b/app/Console/Commands/SendExpectedCheckinAlerts.php@@ -61,7 +61,7 @@ class SendExpectedCheckinAlerts extends Command// Send a rollup to the admin, if settings dictate$recipient = new \App\Models\Recipients\AlertRecipient();- if ($settings->alert_email!='') {+ if (($assets) && ($assets->count() > 0) && ($settings->alert_email!='')) {$recipient->notify(new ExpectedCheckinAdminNotification($assets));}