aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar/list-widget.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sidebar/list-widget.php')
-rw-r--r--templates/sidebar/list-widget.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/sidebar/list-widget.php b/templates/sidebar/list-widget.php
index e9af862..5c94a0e 100644
--- a/templates/sidebar/list-widget.php
+++ b/templates/sidebar/list-widget.php
@@ -2,6 +2,7 @@
<?= CSRFProtection::tokenTag() ?>
<ul class="<?= implode(' ', $css_classes) ?>" aria-label="<?= htmlReady($title) ?>">
<? foreach ($elements as $index => $element): ?>
+ <? $icon = null ?>
<? if ($element instanceof LinkElement): ?>
<? $icon = $element->icon ?? null ?>
<? if ($icon && $element->isDisabled()): ?>