diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 13:39:50 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 13:39:50 +0300 |
commit | 24982a48f570b89e537850dda4a4d1ac33ea919f (patch) | |
tree | 8b4dbdcc8baf67da9f71486ac60202eff4aa9d3d | |
parent | 9c2a12fd427d785eb06d9534d02cccdc26686f5a (diff) |
skin/base: undefined array key warnings
-rw-r--r-- | skin/base.skin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/skin/base.skin.php b/skin/base.skin.php index bfea023..335e330 100644 --- a/skin/base.skin.php +++ b/skin/base.skin.php @@ -184,7 +184,7 @@ return <<<HTML <div class="head-inner clearfix"> <div class="head-logo">{$unsafe_logo_html}</div> <div class="head-items clearfix"> - {$ctx->for_each($items, fn($item) => $ctx->renderHeaderItem($item['url'], $item['label'], $item['label_id'], $item['theme_switcher']))} + {$ctx->for_each($items, fn($item) => $ctx->renderHeaderItem($item['url'], $item['label'], $item['label_id'] ?? null, $item['theme_switcher'] ?? false))} </div> </div> </div> |