N°5619 - Hide newsroom menu when no provider

This commit is contained in:
denis.flaven@combodo.com
2022-11-14 18:18:10 +01:00
parent 2a064fd97d
commit 647b669eb9
2 changed files with 7 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();
}