Add PHP 8 compatibility tweak for generating bulk downloads

This commit is contained in:
Alex Cabal 2023-04-23 18:50:35 -05:00
parent fa4bb08005
commit 03d7206f93

View file

@ -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");
}