summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher/FeedFetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fetcher/FeedFetcher.php')
-rwxr-xr-xlib/Fetcher/FeedFetcher.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Fetcher/FeedFetcher.php b/lib/Fetcher/FeedFetcher.php
index 209722c97..86e0edd18 100755
--- a/lib/Fetcher/FeedFetcher.php
+++ b/lib/Fetcher/FeedFetcher.php
@@ -354,9 +354,14 @@ class FeedFetcher implements IFeedFetcher
*/
protected function getFavicon(FeedInterface $feed, string $url)
{
+ $favicon = null;
// trim the string because authors do funny things
- $favicon = trim($feed->getLogo());
-
+ $feed_logo = $feed->getLogo();
+
+ if (!is_null($feed_logo)) {
+ $favicon = trim($feed_logo);
+ }
+
ini_set('user_agent', 'NextCloud-News/1.0');
$base_url = new Net_URL2($url);