fix: 8defcd448f
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-03-26 18:52:58 +08:00
parent d6df38cb35
commit 8b6ce05198
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -247,7 +247,7 @@ class UOJSubmission {
return;
}
if (isset($files)) {
if (isset($files) && !empty($files)) {
$zip_file = new ZipArchive();
$zip_file->open(UOJContext::storagePath() . $submission->getContent('file_name'), ZipArchive::CREATE);
$tot_size = 0;