1
0
Fork 0
forked from blallo/rss-bridge

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

This commit is contained in:
Eugene Molotov 2018-08-09 19:46:53 +05:00 committed by LogMANOriginal
parent de7622ebbf
commit f8c6400373

View file

@ -48,7 +48,7 @@ class HtmlFormat extends FormatAbstract {
} }
$entryCategories = ''; $entryCategories = '';
if(isset($item['categories'])) { if(isset($item['categories']) && count($item['categories']) > 0) {
$entryCategories = '<div class="categories"><p>Categories:</p>'; $entryCategories = '<div class="categories"><p>Categories:</p>';
foreach($item['categories'] as $category) { foreach($item['categories'] as $category) {