Fix empty menu item counter (#4374)

Remove empty counter from main menu items when set to false. Fixes #4371. Credit to @LarBearrr
This commit is contained in:
Larry Barker 2019-06-06 21:16:55 -05:00 committed by Luke Towers
parent 8768e0a54c
commit 66776e0614

View File

@ -34,7 +34,7 @@
</span>
</a>
<span
class="counter <?= $item->counter === null ? 'empty' : null ?>"
class="counter <?= !$item->counter ? 'empty' : null ?>"
data-menu-id="<?= e($item->code) ?>"
<?php if ($item->counterLabel): ?>title="<?= e(trans($item->counterLabel)) ?>"<?php endif ?>
>