Skip to content

Commit

Permalink
[FIX] Block HTML Loading Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWeinert authored May 5, 2020
1 parent aa8ab53 commit 717a683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Indexer/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public function indexPage($topicId, $languageId) {
*/
public function takeContent($html) {
$document = new PapayaXmlDocument();
if ($document->loadHtml($html) == FALSE) {
if (@$document->loadHtml($html) === FALSE) {
return NULL;
}

Expand Down

0 comments on commit 717a683

Please sign in to comment.