File tree 1 file changed +11
-9
lines changed
src/PhpSpreadsheet/Reader 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -1637,11 +1637,11 @@ public function load($pFilename)
1637
1637
}
1638
1638
}
1639
1639
}
1640
- if (FALSE !== $ xmlDrawingElem = simplexml_load_string (
1640
+ if (FALSE !== ( $ xmlDrawingElem = simplexml_load_string (
1641
1641
$ this ->securityScan ($ this ->getFromZipArchive ($ zip , $ fileDrawing )),
1642
1642
'SimpleXMLElement ' ,
1643
1643
Settings::getLibXmlLoaderOptions ()
1644
- ))
1644
+ )))
1645
1645
{
1646
1646
$ xmlDrawing = $ xmlDrawingElem ->children ('http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing ' );
1647
1647
@@ -1779,16 +1779,18 @@ public function load($pFilename)
1779
1779
}
1780
1780
1781
1781
// unparsed drawing AlternateContent
1782
- $ xmlAltDrawing = simplexml_load_string (
1782
+ if ( FALSE !== ( $ xmlAltDrawingElem = simplexml_load_string (
1783
1783
$ this ->securityScan ($ this ->getFromZipArchive ($ zip , $ fileDrawing )),
1784
1784
'SimpleXMLElement ' ,
1785
1785
Settings::getLibXmlLoaderOptions ()
1786
- )->children ('http://schemas.openxmlformats.org/markup-compatibility/2006 ' );
1787
-
1788
- if ($ xmlAltDrawing ->AlternateContent ) {
1789
- foreach ($ xmlAltDrawing ->AlternateContent as $ alternateContent ) {
1790
- $ unparsedLoadedData ['sheets ' ][$ docSheet ->getCodeName ()]['drawingAlternateContents ' ][] = $ alternateContent ->asXML ();
1791
- }
1786
+ )))
1787
+ {
1788
+ $ xmlAltDrawing = $ xmlAltDrawingElem ->children ('http://schemas.openxmlformats.org/markup-compatibility/2006 ' );
1789
+ if ($ xmlAltDrawing ->AlternateContent ) {
1790
+ foreach ($ xmlAltDrawing ->AlternateContent as $ alternateContent ) {
1791
+ $ unparsedLoadedData ['sheets ' ][$ docSheet ->getCodeName ()]['drawingAlternateContents ' ][] = $ alternateContent ->asXML ();
1792
+ }
1793
+ }
1792
1794
}
1793
1795
}
1794
1796
}
You can’t perform that action at this time.
0 commit comments