From 39821e50b3b5791c9e5f67b49cf0d0542b98771d Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 12 Jan 2010 22:54:35 +0000 Subject: #682766 by Dave Reid: Fixed Admin category block titles not linked on /admin page. --- modules/system/system.admin.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/system/system.admin.inc') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index bcadbe790..c478e0465 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -50,12 +50,8 @@ function system_main_admin_page($arg = NULL) { // Only show blocks for items which are not containers, or those which // are containers and do have items we can show. $block['show'] = TRUE; - if (empty($content)) { - // If no items found below, but access checks did not fail, show. - $block['title'] = l($item['title'], $item['href'], $item['localized_options']); - } - else { - // Theme items below. + $block['title'] = l($item['title'], $item['href'], $item['localized_options']); + if (!empty($content)) { $block['content'] .= theme('admin_block_content', array('content' => $content)); } } -- cgit v1.2.3