]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5399 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 21 Jul 2023 14:18:50 +0000 (16:18 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 21 Jul 2023 14:18:50 +0000 (16:18 +0200)
app/Fluidbook/Compiler/Compiler.php

index d466ad9bcf36f625084049562b6af56ebf1f2f74..7277086ac06499ef556631eec6d7a93e76c41b3d 100644 (file)
@@ -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] = '<symbol id="' . $symbolName . '" viewBox="' . $viewBox . '">' . $this->SimpleXMLElement_innerXML($xml) . '</symbol>';