diff options
Diffstat (limited to 'src/HTMLParser.php')
-rw-r--r-- | src/HTMLParser.php | 9 |
1 files changed, 8 insertions, 1 deletions
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; } |