From 03d7206f93c6f68c4601fb4f57406c25f2927787 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sun, 23 Apr 2023 18:50:35 -0500 Subject: [PATCH] Add PHP 8 compatibility tweak for generating bulk downloads --- scripts/generate-bulk-downloads | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-bulk-downloads b/scripts/generate-bulk-downloads index e18ab46b..212d1c82 100755 --- a/scripts/generate-bulk-downloads +++ b/scripts/generate-bulk-downloads @@ -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"); }