Fix Warning if $relsVML->Relationship is NULL (#1420)
Fix Warning if $relsVML->Relationship is NULL (#1420)
This commit is contained in:
		
							parent
							
								
									0945e87b6d
								
							
						
					
					
						commit
						6c23de78d8
					
				| @ -1000,12 +1000,13 @@ class Xlsx extends BaseReader | ||||
|                                                 Settings::getLibXmlLoaderOptions() | ||||
|                                             ); | ||||
|                                             $drawings = []; | ||||
|                                             if (isset($relsVML->Relationship)) { | ||||
|                                                 foreach ($relsVML->Relationship as $ele) { | ||||
|                                                     if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image') { | ||||
|                                                         $drawings[(string) $ele['Id']] = self::dirAdd($vmlRelationship, $ele['Target']); | ||||
|                                                     } | ||||
|                                                 } | ||||
| 
 | ||||
|                                             } | ||||
|                                             // Fetch VML document
 | ||||
|                                             $vmlDrawing = simplexml_load_string( | ||||
|                                                 $this->securityScanner->scan($this->getFromZipArchive($zip, $vmlRelationship)), | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Collie-IT
						Collie-IT