diff options
author | Andres Rey <[email protected]> | 2017-05-21 23:33:33 +0100 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-05-21 23:33:33 +0100 |
commit | 29daafcd8d733e47a5ee0a0275f26c328f511b00 (patch) | |
tree | 85c9c88ecb4964086b25ca4170824571964cb9a0 | |
parent | c0f2df985a0770c058bcd1c0aed5cd6b220672b8 (diff) |
Minor fix
-rw-r--r-- | src/HTMLParser.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index ef849a8..0407b87 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -170,11 +170,7 @@ class HTMLParser } } - if (!$parseSuccessful) { - return false; - } - - if (!$result) { + if (!$parseSuccessful || $result) { return false; } |