From d8f75495fefd5e2d34515c3ed043d365cc02c129 Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Wed, 13 Mar 2019 16:12:08 +0100 Subject: [PATCH] Don't display organization name in menu bar if it's the only one --- application/itopwebpage.class.inc.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index b22d3f03b..8d82e4060 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -759,15 +759,9 @@ EOF switch ($iCount) { case 0: - // No such dimension/silo => nothing to select - $sHtml = '
'; - break; - case 1: - // Only one possible choice... no selection, but display the value - $oOrg = $oSet->Fetch(); - $sHtml = '
'.$oOrg->GetName().'
'; - $sHtml .= ''; + // No such dimension/silo or only one possible choice => nothing to select + $sHtml = '
'; break; default: