From: Vincent Vanwaelscappel Date: Mon, 19 Jan 2026 11:54:16 +0000 (+0100) Subject: #7894 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a7e3f11a617e50cc057be99451300893efc478eb;p=cubist_util.git #7894 @1 --- 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