Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -99,7 +99,7 @@ class PageRepo | ... | @@ -99,7 +99,7 @@ class PageRepo |
| 99 | $doc->loadHTML($htmlText); | 99 | $doc->loadHTML($htmlText); |
| 100 | 100 | ||
| 101 | $container = $doc->documentElement; | 101 | $container = $doc->documentElement; |
| 102 | - $body = $container->childNodes[0]; | 102 | + $body = $container->childNodes->item(0); |
| 103 | $childNodes = $body->childNodes; | 103 | $childNodes = $body->childNodes; |
| 104 | 104 | ||
| 105 | // Ensure no duplicate ids are used | 105 | // Ensure no duplicate ids are used | ... | ... |
-
Please register or sign in to post a comment