From b5427c0cbb2014ee0010e6f8b314d2ecf2acc167 Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 3 Jun 2021 15:36:07 +0200 Subject: [PATCH] Fix coding warnings --- plugins/dynamix/include/DefaultPageLayout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/DefaultPageLayout.php b/plugins/dynamix/include/DefaultPageLayout.php index 1bcc4d9ec..c82623391 100644 --- a/plugins/dynamix/include/DefaultPageLayout.php +++ b/plugins/dynamix/include/DefaultPageLayout.php @@ -448,7 +448,7 @@ $tab = 1; $view = $myPage['name']; $pages = []; if (isset($myPage['text'])) $pages[$view] = $myPage; -if (isset($myPage['Type']) && $myPage['Type']=='xmenu') $pages = array_merge($pages, find_pages($view)); +if (($myPage['Type'] ?? '') == 'xmenu') $pages = array_merge($pages, find_pages($view)); if (isset($myPage['Tabs'])) $display['tabs'] = strtolower($myPage['Tabs'])=='true' ? 0 : 1; $tabbed = $display['tabs']==0 && count($pages)>1;