diff --git a/src/Helpers/Util.php b/src/Helpers/Util.php index 4aa3095..c03866d 100644 --- a/src/Helpers/Util.php +++ b/src/Helpers/Util.php @@ -145,7 +145,7 @@ public function zipFileLog(string $path): bool { $filename = (date('Ymd') - 1); - if (!file_exists($path . '/' . $filename . '.zip')) : + if (!file_exists($path . '/' . $filename . '.zip') and file_exists($path . '/' . $filename . '.log')) : $zip = new ZipArchive(); $zip->open($path . '/' . $filename . '.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE); $zip->addFile($path . '/' . $filename . '.log');