1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-30 18:37:03 +00:00

fix: update status although email not set

This commit is contained in:
Baoshuo Ren 2023-02-13 21:03:28 +08:00
parent 04e6853222
commit dfdc2a0756
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

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