From 8b6ce0519899e4d7e467c4df19e2055863a776a6 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 26 Mar 2023 18:52:58 +0800 Subject: [PATCH] fix: 8defcd448fc121fe0b76476377b53f5ba745d9b8 --- web/app/models/UOJSubmission.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/models/UOJSubmission.php b/web/app/models/UOJSubmission.php index 5db1e79..79f5b17 100644 --- a/web/app/models/UOJSubmission.php +++ b/web/app/models/UOJSubmission.php @@ -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;