From: Vincent Vanwaelscappel Date: Wed, 19 Feb 2025 09:05:27 +0000 (+0100) Subject: wip #7340 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=198c57f933d64ad42d3bbeed6792fb72e52a474e;p=cubist_pdf.git wip #7340 --- 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();