Only show 'Tags' block when there's a tag to put in it

This commit is contained in:
Daniel Oaks 2019-09-14 15:59:31 +10:00
parent ba20d8d5af
commit 05082c8f11

View File

@ -118,7 +118,9 @@ class TagListTheme extends Themelet
}
if ($config->get_string('tag_list_image_type')=="tags") {
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));
}