diff options
author | Max Kostikov <max@kostikov.co> | 2021-03-10 11:14:02 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-10 11:14:02 +0000 |
commit | 11d831e4d7bd4163ea518892f541252ce1acea2e (patch) | |
tree | 2971e2626503b972b5051d6f26689166e07f4d4c /Zotlabs/Widget/Notifications.php | |
parent | 7ee495624e71125074a4eb9f5533a7af2db2f6b6 (diff) | |
download | volse-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.php | 6 |
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; |