Skip to content

Commit

Permalink
Changed DomNodeList access to work with hhvm
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddanbrown committed Oct 11, 2015
1 parent 5af6656 commit 1520bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Repos/PageRepo.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function formatHtml($htmlText)
$doc->loadHTML($htmlText);

$container = $doc->documentElement;
$body = $container->childNodes[0];
$body = $container->childNodes->item(0);
$childNodes = $body->childNodes;

// Ensure no duplicate ids are used
Expand Down

0 comments on commit 1520bde

Please sign in to comment.