Browse Source

[HtmlFormat] Hide "Categories" label, if array of categories is empty (#765)

Eugene Molotov 4 years ago
parent
commit
f8c6400373
1 changed files with 1 additions and 1 deletions
  1. 1 1
      formats/HtmlFormat.php

+ 1 - 1
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 = '<div class="categories"><p>Categories:</p>';
 
 				foreach($item['categories'] as $category) {