Merge pull request #683 from DanielOaks/develop+tiny_taglist_fix

Only show 'Tags' block when there's a tag to put in it
This commit is contained in:
Shish 2019-09-15 16:34:55 +01:00 committed by GitHub
commit c57cff7d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,9 @@ class TagListTheme extends Themelet
} }
if ($config->get_string('tag_list_image_type')=="tags") { if ($config->get_string('tag_list_image_type')=="tags") {
if ($main_html != null) {
$page->add_block(new Block("Tags", $main_html, "left", 10)); $page->add_block(new Block("Tags", $main_html, "left", 10));
}
} else { } else {
$page->add_block(new Block("Related Tags", $main_html, "left", 10)); $page->add_block(new Block("Related Tags", $main_html, "left", 10));
} }