Skip to content

Commit

Permalink
Merge pull request #44178 from nextcloud/fix/noid/nav-init-add
Browse files Browse the repository at this point in the history
fix(Navigation): ensure NavManager is inited when adding an entry
  • Loading branch information
blizzz committed Mar 14, 2024
2 parents 5764f03 + 1f2d267 commit 10593d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/private/NavigationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function add($entry) {
$this->closureEntries[] = $entry;
return;
}
$this->init();

$id = $entry['id'];

Expand Down Expand Up @@ -236,10 +237,6 @@ private function init() {
]);
}

if ($this->appManager === 'null') {
return;
}

$this->defaultApp = $this->appManager->getDefaultAppForUser($this->userSession->getUser(), false);

if ($this->userSession->isLoggedIn()) {
Expand Down

0 comments on commit 10593d1

Please sign in to comment.