From 2f5fc7c7d4dab0ee4152efee0c2b33f5c2631396 Mon Sep 17 00:00:00 2001 From: Axel Hahn <ax2002@gmx.net> Date: Tue, 21 Nov 2023 23:57:32 +0100 Subject: [PATCH] fix first install: hide projects --- public_html/deployment/inc_functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public_html/deployment/inc_functions.php b/public_html/deployment/inc_functions.php index 86b533d2..e4f24f5a 100644 --- a/public_html/deployment/inc_functions.php +++ b/public_html/deployment/inc_functions.php @@ -239,11 +239,13 @@ function getTopNavLeft($aEmbed=[]) { ['href'=>$sBaseUrl . 'all/setup/', 'label'=>t("menu-settings"), 'icon'=>'fa-solid fa-gear'], ] ]; - $aReturn[]=[ + if(count($aPrjItems)){ + $aReturn[]=[ 'href'=>'#','label'=>t("menu-projects"), 'icon'=>'fa-solid fa-box-open', 'children'=>$aPrjItems ] ; + } if ($sCurrentProject){ $oPrj = new project($aParams["prj"]); $aPrjChildren=[ -- GitLab