diff options
-rw-r--r-- | src/Readability.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php index 83236c7..a2e57c9 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -831,7 +831,7 @@ class Readability */ $DOMNodeList = iterator_to_array($dom->getElementsByTagName('br')); $length = count($DOMNodeList); - for ($i = 0; $i < $length; $i++) { + for ($i = 0; $i < $length; $i < 0 ? $i = 0 : $i++) { $br = $DOMNodeList[$i]; $next = $br->nextSibling; |