diff options
author | Pedro Amorim <[email protected]> | 2018-03-14 15:50:04 +0100 |
---|---|---|
committer | Pedro Amorim <[email protected]> | 2018-03-14 15:50:04 +0100 |
commit | 9092772c87c2a1a1a0cd8c792780fc6106cafb05 (patch) | |
tree | 8dcabd78e142f0d379273c2d8c574717e6688d36 | |
parent | d892b1376809c454980ce7083e6cee67d47e6b26 (diff) |
Use instanceof DOMdocument
-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 cffe4f0..111c31e 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -1564,7 +1564,7 @@ class Readability */ public function getContent() { - return (null !== $this->content) ? $this->content->C14N() : null; + return ($this->content instanceof DOMDocument) ? $this->content->C14N() : null; } /** |