aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Notifications.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-10 11:14:02 +0000
committerMario <mario@mariovavti.com>2021-03-10 11:14:02 +0000
commit11d831e4d7bd4163ea518892f541252ce1acea2e (patch)
tree2971e2626503b972b5051d6f26689166e07f4d4c /Zotlabs/Widget/Notifications.php
parent7ee495624e71125074a4eb9f5533a7af2db2f6b6 (diff)
downloadvolse-hubzilla-11d831e4d7bd4163ea518892f541252ce1acea2e.tar.gz
volse-hubzilla-11d831e4d7bd4163ea518892f541252ce1acea2e.tar.bz2
volse-hubzilla-11d831e4d7bd4163ea518892f541252ce1acea2e.zip
More PHP 8 fixes
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;