diff --git a/public_html/deployment/inc_functions.php b/public_html/deployment/inc_functions.php index 86b533d291eb1476f1a887cb6bfb19cff0395596..e4f24f5a71e6a9422e86caf3aa86816a14e66c94 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=[