]> BookStack Code Mirror - bookstack/commitdiff
Changed DomNodeList access to work with hhvm
authorDan Brown <redacted>
Sun, 11 Oct 2015 16:45:32 +0000 (17:45 +0100)
committerDan Brown <redacted>
Sun, 11 Oct 2015 16:45:32 +0000 (17:45 +0100)
app/Repos/PageRepo.php

index 1f0c618191122dd5ca10c1821dfdb358bab5834b..448ba794370c6845ae7ff62d8f9a1f84c44daeef 100644 (file)
@@ -99,7 +99,7 @@ class PageRepo
         $doc->loadHTML($htmlText);
 
         $container = $doc->documentElement;
-        $body = $container->childNodes[0];
+        $body = $container->childNodes->item(0);
         $childNodes = $body->childNodes;
 
         // Ensure no duplicate ids are used