From 76eace311e206c352d9d965a099d5d4cc457249a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 28 Nov 2004 12:03:11 +0000 Subject: - Usability improvement: only display subtabs if there is more than one subtab. If there is only one, make sure it is the set to be the default subtab and all is well. --- includes/menu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/menu.inc b/includes/menu.inc index 15f72f67e..82ab9c8c6 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -610,7 +610,7 @@ function theme_menu_local_tasks() { $output .= "\n"; foreach ($local_tasks[$pid]['children'] as $mid) { - if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children'])) { + if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children']) > 1) { $output .= "