From af57ca4983b24c199f051ecd56e0fc56eff2b219 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 29 May 2025 11:55:43 -0700 Subject: [PATCH] Avoid displaying empty table --- app/Console/Commands/SendAcceptanceReminder.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }