0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-07 07:11:32 +00:00

fix(NavigationManager): Make entry order always an integer

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2024-05-30 16:59:04 +02:00
parent 8965b70228
commit 0a7fcde906
No known key found for this signature in database
3 changed files with 4 additions and 11 deletions

View file

@ -95,7 +95,7 @@ class NavigationManager implements INavigationManager {
// This is the default app that will always be shown first
$entry['default'] = ($entry['app'] ?? false) === $this->defaultApp;
// Set order from user defined app order
$entry['order'] = $this->customAppOrder[$id]['order'] ?? $entry['order'] ?? 100;
$entry['order'] = (int)($this->customAppOrder[$id]['order'] ?? $entry['order'] ?? 100);
}
$this->entries[$id] = $entry;