[HeiseBridge] Check for article (#1790)

This commit is contained in:
ayacoo 2020-11-10 07:14:09 +01:00 committed by GitHub
parent b66026e241
commit cc548b16a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,8 +45,10 @@ class HeiseBridge extends FeedExpander {
$article = getSimpleHTMLDOMCached($uri)
or returnServerError('Could not open article: ' . $uri);
$article = defaultLinkTo($article, $uri);
$item = $this->addArticleToItem($item, $article);
if ($article) {
$article = defaultLinkTo($article, $uri);
$item = $this->addArticleToItem($item, $article);
}
return $item;
}