From: Vincent Vanwaelscappel Date: Thu, 21 Sep 2023 07:59:23 +0000 (+0200) Subject: wip #4214 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c5663cfde7178ae63caaa6f794b0bd2c7cf18c38;p=fluidbook-toolbox.git wip #4214 @0.25 --- 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);