A free open source IT asset/license management system
Avoid displaying empty table
Marcus Mooreaf57ca4983b2
diff --git a/app/Console/Commands/SendAcceptanceReminder.php b/app/Console/Commands/SendAcceptanceReminder.phpindex 250b08abf9..c1cf4ffda2 100644--- a/app/Console/Commands/SendAcceptanceReminder.php+++ b/app/Console/Commands/SendAcceptanceReminder.php@@ -99,8 +99,11 @@ class SendAcceptanceReminder extends Commandforeach ($no_email_list as $user) {$rows[] = [$user['id'], $user['name']];}- $this->info("The following users do not have an email address:");- $this->table($headers, $rows);++ if (!empty($rows)) {+ $this->info("The following users do not have an email address:");+ $this->table($headers, $rows);+ }return 0;}