diff options
author | Max Kostikov <max@kostikov.co> | 2021-04-18 09:27:25 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-04-18 09:27:25 +0200 |
commit | d2f1edfad841a186b796e7d468bd1454f6c19f68 (patch) | |
tree | 797db7d17fef736277503483beda7243847f01d0 /include/menu.php | |
parent | 2ddfcd522288c5b52a90858cab378c26769feac3 (diff) | |
download | volse-hubzilla-d2f1edfad841a186b796e7d468bd1454f6c19f68.tar.gz volse-hubzilla-d2f1edfad841a186b796e7d468bd1454f6c19f68.tar.bz2 volse-hubzilla-d2f1edfad841a186b796e7d468bd1454f6c19f68.zip |
PHP 8 fixes
Diffstat (limited to 'include/menu.php')
-rw-r--r-- | include/menu.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/menu.php b/include/menu.php index 88863f57b..02b05a36e 100644 --- a/include/menu.php +++ b/include/menu.php @@ -111,7 +111,7 @@ function menu_render($menu, $class='', $edit = false, $var = array()) { $menu['items'][$x]['mitem_desc'] = zidify_links(smilies(bbcode($menu['items'][$x]['mitem_desc']))); } - $wrap = (($var['wrap'] === 'none') ? false : true); + $wrap = (! x($var, 'wrap') || $var['wrap'] === 'none' ? false : true); $ret = replace_macros(get_markup_template('usermenu.tpl'),array( '$menu' => $menu['menu'], |