From c5663cfde7178ae63caaa6f794b0bd2c7cf18c38 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 21 Sep 2023 09:59:23 +0200 Subject: [PATCH] wip #4214 @0.25 --- app/Fluidbook/Compiler/Compiler.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index e29401144..bde47cf10 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -2251,7 +2251,14 @@ class Compiler extends Base implements CompilerInterface public function addFont($fontFile) { + if (!$fontFile) { + return; + } + $f = $this->wdir . '/' . $fontFile; + if (!file_exists($f)) { + return; + } $e = explode('.', $f); $ext = array_pop($e); $hash = 'fb_' . substr(md5($fontFile), 0, 10); -- 2.39.5