From f8c640037308533e489c866ed2fa21d12b6b4fbe Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Thu, 9 Aug 2018 19:46:53 +0500 Subject: [PATCH] [HtmlFormat] Hide "Categories" label, if array of categories is empty (#765) --- formats/HtmlFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/HtmlFormat.php b/formats/HtmlFormat.php index c4c5012..3174c7e 100644 --- a/formats/HtmlFormat.php +++ b/formats/HtmlFormat.php @@ -48,7 +48,7 @@ class HtmlFormat extends FormatAbstract { } $entryCategories = ''; - if(isset($item['categories'])) { + if(isset($item['categories']) && count($item['categories']) > 0) { $entryCategories = '

Categories:

'; foreach($item['categories'] as $category) {