summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2017-03-09 10:00:57 +0000
committerAndres Rey <[email protected]>2017-03-09 10:00:57 +0000
commit77c9754c302fa3112bb4f739913df9f2785fc8df (patch)
tree1f674bad9318da7397bdf479d0320928623c8574 /src
parent82004f590a0e987d00d9639fd9ea7fcc84506b48 (diff)
Fixed small mistake when getting the articleByLine. Corrected test case
Diffstat (limited to 'src')
-rw-r--r--src/HTMLParser.php9
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;
}