aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Notifications.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-10 19:41:46 +0000
committerMax Kostikov <max@kostikov.co>2021-03-10 19:41:46 +0000
commitb729cee9e4aaf908d28835341171311532ae05d6 (patch)
treef47ec7020c314c9101d4ddceb222b608166d4825 /Zotlabs/Widget/Notifications.php
parent15b45af550cb59013cbf915c63635fdf03cdd73e (diff)
parent15bc5c64f3f4c3226e6329f8b8aa73df4aeb5e0b (diff)
downloadvolse-hubzilla-b729cee9e4aaf908d28835341171311532ae05d6.tar.gz
volse-hubzilla-b729cee9e4aaf908d28835341171311532ae05d6.tar.bz2
volse-hubzilla-b729cee9e4aaf908d28835341171311532ae05d6.zip
Merge branch 'dev' into 'dev'
Dev sync See merge request kostikov/core!1
Diffstat (limited to 'Zotlabs/Widget/Notifications.php')
-rw-r--r--Zotlabs/Widget/Notifications.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Notifications.php b/Zotlabs/Widget/Notifications.php
index e2a543f80..dd5a6cd46 100644
--- a/Zotlabs/Widget/Notifications.php
+++ b/Zotlabs/Widget/Notifications.php
@@ -175,13 +175,13 @@ class Notifications {
];
}
- $o = replace_macros(get_markup_template('notifications_widget.tpl'), array(
+ $o = replace_macros(get_markup_template('notifications_widget.tpl'), [
'$module' => \App::$module,
'$notifications' => $notifications,
'$no_notifications' => t('Sorry, you have got no notifications at the moment'),
'$loading' => t('Loading'),
- '$startpage' => $channel['channel_startpage']
- ));
+ '$startpage' => ($channel ? $channel['channel_startpage'] : '')
+ ]);
return $o;