summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher/FeedFetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fetcher/FeedFetcher.php')
-rwxr-xr-xlib/Fetcher/FeedFetcher.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Fetcher/FeedFetcher.php b/lib/Fetcher/FeedFetcher.php
index 82ad86352..c06b81b52 100755
--- a/lib/Fetcher/FeedFetcher.php
+++ b/lib/Fetcher/FeedFetcher.php
@@ -119,9 +119,10 @@ class FeedFetcher implements IFeedFetcher
$body = null;
$currRTL = $RTL;
- // Scrape content if enabled
+ // Scrape the content if full-text is enabled and if the feed provides a URL
if ($fullTextEnabled) {
- if ($this->scraper->scrape($item->getLink())) {
+ $itemLink = $item->getLink();
+ if ($itemLink !== null && $this->scraper->scrape($itemLink)) {
$body = $this->scraper->getContent();
$currRTL = $this->scraper->getRTL($currRTL);
}