diff --git a/web/app/models/UOJMail.php b/web/app/models/UOJMail.php index 4ed1f68..ae11a29 100644 --- a/web/app/models/UOJMail.php +++ b/web/app/models/UOJMail.php @@ -94,6 +94,9 @@ class UOJMail { DB::update("update emails set send_time = now() where id = {$email['id']}"); echo '[UOJMail::cronSendEmail] ID: ' . $email['id'] . ' sent.' . "\n"; } + } else { + DB::update("update emails set send_time = now() where id = {$email['id']}"); + echo '[UOJMail::cronSendEmail] ID: ' . $email['id'] . ' - empty email address.' . "\n"; } }