From 198c57f933d64ad42d3bbeed6792fb72e52a474e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 19 Feb 2025 10:05:27 +0100 Subject: [PATCH] wip #7340 --- src/PDFTools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PDFTools.php b/src/PDFTools.php index 17666f1..c421365 100644 --- a/src/PDFTools.php +++ b/src/PDFTools.php @@ -485,7 +485,7 @@ class PDFTools return; } - if (file_exists($tmp)) { + if (file_exists($tmp) && filesize($tmp) > 0) { rename($tmp, $out); } else { $exe->error_log(); -- 2.39.5