From ea6401875e27fde308fc72e4cb1894ba0a42aa6a Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 28 Aug 2007 06:11:23 +0000 Subject: [PATCH] Don't show block table layout when there are no blocks --- tag/index.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tag/index.php b/tag/index.php index 1c5719d4bd..e4aed35909 100644 --- a/tag/index.php +++ b/tag/index.php @@ -42,11 +42,11 @@ echo ''; $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), 210); -echo ''; if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) { + echo ''; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); + echo ''; } -echo ''; @@ -54,7 +54,6 @@ echo ''; echo ''; - $tagname = tag_display_name($tag); $systemcontext = get_context_instance(CONTEXT_SYSTEM); @@ -92,11 +91,11 @@ echo ''; $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), 210); -echo ''; if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) { + echo ''; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); + echo ''; } -echo ''; /// Finish the page echo ''; -- 2.39.5