summaryrefslogtreecommitdiffstats
path: root/utility/feedfetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'utility/feedfetcher.php')
-rw-r--r--utility/feedfetcher.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/utility/feedfetcher.php b/utility/feedfetcher.php
index f72a14439..c54dabf05 100644
--- a/utility/feedfetcher.php
+++ b/utility/feedfetcher.php
@@ -141,7 +141,14 @@ class FeedFetcher implements IFeedFetcher {
$feed = new Feed();
// unescape content because angularjs helps agains XSS
- $feed->setTitle(html_entity_decode($simplePieFeed->get_title()));
+ $title = html_entity_decode($simplePieFeed->get_title());
+
+ // if there is no title use the url
+ if(!$title) {
+ $title = $url;
+ }
+
+ $feed->setTitle($title);
$feed->setUrl($url);
$feed->setLink($simplePieFeed->get_link());
$feed->setUrlHash(md5($url));