A free open source IT asset/license management system
Clearer message on no inventory to report
snipeddd2a96ac54c
diff --git a/app/Console/Commands/SendInventoryAlerts.php b/app/Console/Commands/SendInventoryAlerts.phpindex 2c270ca7b4..f099597d9b 100644--- a/app/Console/Commands/SendInventoryAlerts.php+++ b/app/Console/Commands/SendInventoryAlerts.php@@ -52,7 +52,9 @@ class SendInventoryAlerts extends Commandreturn new AlertRecipient($item);});- \Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold));+ Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold));+ } else {+ $this->info('No low inventory items found. No mail sent.');}} else {if ($settings->alert_email == '') {