diff options
author | Mario <mario@mariovavti.com> | 2021-02-18 19:46:26 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-02-18 19:46:26 +0000 |
commit | 85f1845d1538bbaa1fa8ba390e12193211080cd1 (patch) | |
tree | 35365e3f4e327d1095f87f5fbe3f0622fe26df4f /include/nav.php | |
parent | c34fc416a28e62ae87fbcb25ae015b8b1f114df9 (diff) | |
download | volse-hubzilla-85f1845d1538bbaa1fa8ba390e12193211080cd1.tar.gz volse-hubzilla-85f1845d1538bbaa1fa8ba390e12193211080cd1.tar.bz2 volse-hubzilla-85f1845d1538bbaa1fa8ba390e12193211080cd1.zip |
fix usage of null coalescing operator
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/nav.php b/include/nav.php index ee0e1bda6..1ad8dad58 100644 --- a/include/nav.php +++ b/include/nav.php @@ -14,8 +14,8 @@ function nav($template = 'default') { * */ - App::$page['nav'] = isset(App::$page['nav']) ?? ''; - App::$page['htmlhead'] = isset(App::$page['htmlhead']) ?? ''; + App::$page['nav'] = App::$page['nav'] ?? ''; + App::$page['htmlhead'] = App::$page['htmlhead'] ?? ''; App::$page['htmlhead'] .= '<script>$(document).ready(function() { $("#nav-search-text").search_autocomplete(\'' . z_root() . '/acl' . '\');});</script>'; $is_owner = (((local_channel()) && ((App::$profile_uid == local_channel()) || (App::$profile_uid == 0))) ? true : false); $observer = []; @@ -64,7 +64,7 @@ function nav($template = 'default') { call_hooks('get_banner', $banner); - App::$page['header'] = isset(App::$page['header']) ?? ''; + App::$page['header'] = App::$page['header'] ?? ''; App::$page['header'] .= replace_macros(get_markup_template('hdr.tpl'), [ //we could additionally use this to display important system notifications e.g. for updates ]); @@ -151,8 +151,8 @@ function nav($template = 'default') { } $homelink_arr = parse_url($my_url); - $scheme = isset($homelink_arr['scheme']) ?? ''; - $host = isset($homelink_arr['host']) ?? ''; + $scheme = $homelink_arr['scheme'] ?? ''; + $host = $homelink_arr['host'] ?? ''; $homelink = $scheme . '://' . $host; if (!$is_owner) { |