Avoid default value style="display:block" in HTML

This change makes the HTML smaller.

Change-Id: Ie90eb8c85bb530de634bd190290e9aa303018073
This commit is contained in:
Fomafix 2021-09-02 09:35:57 +00:00
parent 1801504dfb
commit 49453bbfde

View file

@ -673,7 +673,7 @@ class CategoryTree {
'div',
[
'class' => 'CategoryTreeChildren',
'style' => $children > 0 ? 'display:block' : 'display:none'
'style' => $children === 0 ? 'display:none' : null
]
);