From a7e3f11a617e50cc057be99451300893efc478eb Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 19 Jan 2026 12:54:16 +0100 Subject: [PATCH] #7894 @1 --- src/CommandLine/Docling.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommandLine/Docling.php b/src/CommandLine/Docling.php index 91af002..af47db0 100644 --- a/src/CommandLine/Docling.php +++ b/src/CommandLine/Docling.php @@ -52,6 +52,6 @@ class Docling extends CommandLine public static function isCached($image, $locale = null) { $out = self::cache($image, $locale); - return file_exists($out) && filemtime($out) > filemtime($image); + return file_exists($out) && filemtime($out) > filemtime($image) && filesize($out) > 0; } } \ No newline at end of file -- 2.39.5