mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-32639 files: Improved File Manager download and zip support
This commit is contained in:
parent
697ade2850
commit
638d72cd0b
6 changed files with 46 additions and 26 deletions
|
@ -137,6 +137,12 @@ class zip_packer extends file_packer {
|
|||
}
|
||||
}
|
||||
|
||||
// We can consider that there was an error if the file generated does not contain anything.
|
||||
if ($ziparch->count() == 0) {
|
||||
$result = false;
|
||||
debugging("Nothing was added to the zip file", DEBUG_DEVELOPER);
|
||||
}
|
||||
|
||||
return ($ziparch->close() && $result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue