Skip to content

Commit

Permalink
Merge pull request #2 from omcrn/suppress-loadhtml-error
Browse files Browse the repository at this point in the history
added suppress @ operator
  • Loading branch information
zura2 authored May 24, 2019
2 parents 638b638 + 640686f commit 00b4158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Reader/HTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
// Create a new DOM object
$dom = new domDocument;
// Reload the HTML file into the DOM object
$loaded = $dom->loadHTML(mb_convert_encoding($this->securityScanFile($pFilename), 'HTML-ENTITIES', 'UTF-8'));
$loaded = @$dom->loadHTML(mb_convert_encoding($this->securityScanFile($pFilename), 'HTML-ENTITIES', 'UTF-8'));
if ($loaded === false) {
throw new PHPExcel_Reader_Exception('Failed to load ' . $pFilename . ' as a DOM Document');
}
Expand Down

0 comments on commit 00b4158

Please sign in to comment.