mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Check for > 0 expected assets
This commit is contained in:
parent
79555f5647
commit
1a29d4f60f
|
@ -61,7 +61,7 @@ class SendExpectedCheckinAlerts extends Command
|
||||||
// Send a rollup to the admin, if settings dictate
|
// Send a rollup to the admin, if settings dictate
|
||||||
$recipient = new \App\Models\Recipients\AlertRecipient();
|
$recipient = new \App\Models\Recipients\AlertRecipient();
|
||||||
|
|
||||||
if ($settings->alert_email!='') {
|
if (($assets) && ($assets->count() > 0) && ($settings->alert_email!='')) {
|
||||||
$recipient->notify(new ExpectedCheckinAdminNotification($assets));
|
$recipient->notify(new ExpectedCheckinAdminNotification($assets));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue