N°5619 - hide newsroom menu when no provider

This commit is contained in:
denis.flaven@combodo.com
2022-11-14 18:37:20 +01:00
committed by Denis
parent c6e4466c53
commit 40e24c25a2
2 changed files with 11 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ class NavigationMenuFactory
{
$oNewsroomMenu = null;
if (MetaModel::GetConfig()->Get('newsroom_enabled'))
if (MetaModel::GetConfig()->Get('newsroom_enabled') && NewsroomMenuFactory::HasProviders())
{
$oNewsroomMenu = NewsroomMenuFactory::MakeNewsroomMenuForNavigationMenu();
}