diff --git a/themes/default/template.php b/themes/default/template.php index e0e5bbb88b..f0160b68f4 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -523,17 +523,19 @@ echo "
\n"; echo "
"; } echo "".escape($domain['domain_name'])."\n"; - //active domain description text color - if ($_SESSION['theme']['domain_active_desc_text_color']['text'] != '' && $domain['domain_description'] != '' && $domain['domain_uuid'] == $_SESSION['domain_uuid']) { - echo " - ".escape($domain['domain_description'])."\n"; - } - //inactive domains description text color - else if ($_SESSION['theme']['domain_inactive_desc_text_color']['text'] != '' && $domain['domain_description'] != '' && $domain['domain_uuid'] != $_SESSION['domain_uuid']) { - echo " - ".escape($domain['domain_description'])."\n"; - } - //default domain description text color - else { - echo " - ".escape($domain['domain_description'])."\n"; + if ($domain['domain_description'] != '') { + //active domain description text color + if ($_SESSION['theme']['domain_active_desc_text_color']['text'] != '' && $domain['domain_uuid'] == $_SESSION['domain_uuid']) { + echo " - ".escape($domain['domain_description'])."\n"; + } + //inactive domains description text color + else if ($_SESSION['theme']['domain_inactive_desc_text_color']['text'] != '' && $domain['domain_uuid'] != $_SESSION['domain_uuid']) { + echo " - ".escape($domain['domain_description'])."\n"; + } + //default domain description text color + else { + echo " - ".escape($domain['domain_description'])."\n"; + } } echo "
\n"; $ary_domain_names[] = $domain['domain_name'];