diff --git a/app/Console/Commands/SendAcceptanceReminder.php b/app/Console/Commands/SendAcceptanceReminder.php index 250b08abf9..c1cf4ffda2 100644 --- a/app/Console/Commands/SendAcceptanceReminder.php +++ b/app/Console/Commands/SendAcceptanceReminder.php @@ -99,8 +99,11 @@ class SendAcceptanceReminder extends Command foreach ($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; }