diff options
author | Andres Rey <[email protected]> | 2017-03-09 10:00:57 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-03-09 10:00:57 +0000 |
commit | 77c9754c302fa3112bb4f739913df9f2785fc8df (patch) | |
tree | 1f674bad9318da7397bdf479d0320928623c8574 /src | |
parent | 82004f590a0e987d00d9639fd9ea7fcc84506b48 (diff) |
Fixed small mistake when getting the articleByLine. Corrected test case
Diffstat (limited to 'src')
-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; } |