mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Add PHP 8 compatibility tweak for generating bulk downloads
This commit is contained in:
parent
fa4bb08005
commit
03d7206f93
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ function CreateZip(string $filePath, array $ebooks, string $type, string $webRoo
|
|||
|
||||
$zip = new ZipArchive();
|
||||
|
||||
if($zip->open($tempFilename, ZipArchive::CREATE) !== true){
|
||||
if($zip->open($tempFilename, ZipArchive::OVERWRITE) !== true){
|
||||
print('Can\'t open file: ' . $tempFilename . "\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue