From bf7fe04c4b238f7c20dd3bb54c2f8df13cc0f6b8 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 3 Feb 2023 09:52:37 +0100 Subject: fix(appinfo): navigation type is optional Signed-off-by: Joas Schilling --- lib/private/App/InfoParser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/App') diff --git a/lib/private/App/InfoParser.php b/lib/private/App/InfoParser.php index 79a88b46236..c0f69e615bd 100644 --- a/lib/private/App/InfoParser.php +++ b/lib/private/App/InfoParser.php @@ -226,7 +226,8 @@ class InfoParser { */ private function isNavigationItem($data): bool { // Allow settings navigation items with no route entry - if ($data['type'] === 'settings') { + $type = $data['type'] ?? 'link'; + if ($type === 'settings') { return isset($data['name']); } return isset($data['name'], $data['route']); -- cgit v1.2.3