mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2025-02-17 14:36:42 +00:00
fix: 8defcd448fc121fe0b76476377b53f5ba745d9b8
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d6df38cb35
commit
8b6ce05198
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user