mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-09-08 01:05:18 +00:00
fix: 8defcd448f
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…
Reference in New Issue
Block a user