diff options
author | Andres Rey <[email protected]> | 2016-11-14 17:26:23 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-11-14 17:26:23 +0000 |
commit | c33298328f73e6c8f34e07ec9e92f2b6dd3c514b (patch) | |
tree | c8c84d15774dbc34b4485ccb7b5a94c715ae0563 /src/Readability.php | |
parent | fadc0c437251f797b2c224e97d55b3dec6b7d6cb (diff) |
Minor fixes
Diffstat (limited to 'src/Readability.php')
-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 f4e7b86..35b6514 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -87,7 +87,7 @@ class Readability extends Element implements ReadabilityInterface $node = $this; - while (($node) ? $node->getParent() : $node) { + while ($node) { $ancestors[] = new static($node->node); $level++; if ($level >= $maxLevel) { |