Merge pull request #17040 from marcusmoore/improve-acceptance-reminder-output

Avoid displaying empty table in `SendAcceptanceReminder` command
This commit is contained in:
snipe
2025-05-29 21:14:09 +01:00
committed by GitHub

View File

@@ -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;
}