diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index cac52ab5c9f1c..0ce2b3124b29b 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -94,6 +94,7 @@ public function add($entry) { $this->closureEntries[] = $entry; return; } + $this->init(); $id = $entry['id']; @@ -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()) {