From: Vincent Vanwaelscappel Date: Fri, 21 Jul 2023 14:18:50 +0000 (+0200) Subject: wait #5399 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e422a2610c22b48438f717df9fc1877497a0143e;p=fluidbook-toolbox.git wait #5399 @0.25 --- diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index d466ad9bc..7277086ac 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -1443,6 +1443,9 @@ class Compiler extends Base implements CompilerInterface $svg = SVGTools::optimizeSVG($svg); $xml = simplexml_load_string(file_get_contents($svg)); + if (!$xml) { + return; + } $viewBox = (string)$xml['viewBox']; $this->_svgSymbols[$symbolName] = '' . $this->SimpleXMLElement_innerXML($xml) . '';