From b3db0a38ad54a4f986944f7fb4f83143783a307c Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Tue, 24 Oct 2023 17:12:03 -0400 Subject: [PATCH] typo --- mixin/setting-admin@1/mixin.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mixin/setting-admin@1/mixin.php b/mixin/setting-admin@1/mixin.php index e68810ddf9..708421bb07 100644 --- a/mixin/setting-admin@1/mixin.php +++ b/mixin/setting-admin@1/mixin.php @@ -194,7 +194,10 @@ return function ($mixInfo, $bootCache) { // Skip if we're already in the menu. (Ignore optional suffix `?reset=1`) $found = Nav::walk($menu, function(&$item) use ($about) { - return strpos($item['attribute']['url'], $about->getPath()) === 0 ? 'found' : NULL; + if (!isset($item['attributes']['url'])) { + return NULL; + } + return strpos($item['attributes']['url'], $about->getPath()) === 0 ? 'found' : NULL; }); if ($found) { return; -- 2.25.1