From 24982a48f570b89e537850dda4a4d1ac33ea919f Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 11 Jul 2022 13:39:50 +0300 Subject: skin/base: undefined array key warnings --- skin/base.skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 <<
- {$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))}
-- cgit v1.2.3