From 05082c8f1197e5d4ac10ff9ff1aa063e72339c38 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sat, 14 Sep 2019 15:59:31 +1000 Subject: [PATCH] Only show 'Tags' block when there's a tag to put in it --- ext/tag_list/theme.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/tag_list/theme.php b/ext/tag_list/theme.php index b162076f..73163a96 100644 --- a/ext/tag_list/theme.php +++ b/ext/tag_list/theme.php @@ -118,7 +118,9 @@ class TagListTheme extends Themelet } if ($config->get_string('tag_list_image_type')=="tags") { - $page->add_block(new Block("Tags", $main_html, "left", 10)); + if ($main_html != null) { + $page->add_block(new Block("Tags", $main_html, "left", 10)); + } } else { $page->add_block(new Block("Related Tags", $main_html, "left", 10)); }