fallback to default froxlor newsfeed when no custom newsfeed (rss) is given if newsfeed is shown on customer dashboard

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-02-07 10:05:41 +01:00
parent 03afbc902d
commit 1b5e31e59d

View File

@@ -35,6 +35,9 @@ if (isset($_POST['action'])) {
if ($action == "newsfeed") {
if (isset($_GET['role']) && $_GET['role'] == "customer") {
$feed = \Froxlor\Settings::Get("customer.news_feed_url");
if (empty(trim($feed))) {
$feed = "https://inside.froxlor.org/news/";
}
} else {
$feed = "https://inside.froxlor.org/news/";
}