]> _ Git - cubist_pdf.git/commitdiff
wip #7340
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Feb 2025 09:05:27 +0000 (10:05 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Feb 2025 09:05:27 +0000 (10:05 +0100)
src/PDFTools.php

index 17666f1a4eece27aaae1e8cce64988d592805944..c4213652bf468f6a7812f150f69c61882a9bc7db 100644 (file)
@@ -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();