From 368fc66fbf1d0612f5721dfbb98232236b6645cd Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 9 Aug 2016 16:45:33 +0200 Subject: [PATCH] [AtomFormat] Use default feed URI if non defined --- formats/AtomFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 0758d96..d72e8b7 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -17,7 +17,7 @@ class AtomFormat extends FormatAbstract{ $extraInfos = $this->getExtraInfos(); $title = $this->xml_encode($extraInfos['name']); - $uri = $extraInfos['uri']; + $uri = !empty($extraInfos['uri']) ? $extraInfos['uri'] : 'https://github.com/sebsauvage/rss-bridge'; $icon = $this->xml_encode('http://icons.better-idea.org/icon?url='. $uri .'&size=64'); $uri = $this->xml_encode($uri);