From 77c9754c302fa3112bb4f739913df9f2785fc8df Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Thu, 9 Mar 2017 10:00:57 +0000 Subject: Fixed small mistake when getting the articleByLine. Corrected test case --- src/HTMLParser.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/HTMLParser.php b/src/HTMLParser.php index 1ef4489..5d02d05 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -1112,7 +1112,14 @@ class HTMLParser */ private function checkByline($node, $matchString) { - if ($this->getConfig()->getOption('articleByLine')) { + if (!$this->getConfig()->getOption('articleByLine')) { + return false; + } + + /* + * Check if the byline is already set + */ + if (isset($this->metadata['byline'])) { return false; } -- cgit v1.2.3