mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 09:35:28 +03:00
[HtmlFormat] Hide "Categories" label, if array of categories is empty (#765)
This commit is contained in:
parent
de7622ebbf
commit
f8c6400373
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue