summaryrefslogtreecommitdiff
path: root/app/Console/Commands/SaveStats.php
diff options
context:
space:
mode:
authorhorus2022-11-17 21:32:52 +0100
committerhorus2022-11-17 21:32:52 +0100
commite757674c18a80a5bcdbcd031b35177b1e82eeb2d (patch)
treec7bb2966d6ab2b717bf5b803550fda213190e22c /app/Console/Commands/SaveStats.php
parent965292ffe460b3cb5b9452161499d20310905589 (diff)
downloadsenpai-e757674c18a80a5bcdbcd031b35177b1e82eeb2d.tar.gz
Don't send emails when there is nothing to report
Diffstat (limited to 'app/Console/Commands/SaveStats.php')
-rw-r--r--app/Console/Commands/SaveStats.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/Console/Commands/SaveStats.php b/app/Console/Commands/SaveStats.php
index 8af214b..b1b83b9 100644
--- a/app/Console/Commands/SaveStats.php
+++ b/app/Console/Commands/SaveStats.php
@@ -37,8 +37,12 @@ class SaveStats extends Command
ob_end_clean();
if ( $ok ) {
- $this->info( $msg );
- return Command::SUCCESS;
+ if ( "" != $msg ) {
+ $this->info( $msg );
+ return Command::FAILURE; // Hack to force output
+ } else {
+ return Command::SUCCESS;
+ }
}
$this->error( "Failure happened:\n" );