diff --git a/core/AppInfo/Application.php b/core/AppInfo/Application.php index 599ab4ddda427..6d55bfb7c0299 100644 --- a/core/AppInfo/Application.php +++ b/core/AppInfo/Application.php @@ -93,5 +93,4 @@ public function register(IRegistrationContext $context): void { public function boot(IBootContext $context): void { // ... } - } diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index d6ddb6866dd57..b545cb879debe 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -309,17 +309,15 @@ private function init(bool $resolveClosures = true): void { } $logoutUrl = \OC_User::getLogoutUrl($this->urlGenerator); - if ($logoutUrl !== '') { - // Logout - $this->add([ - 'type' => 'settings', - 'id' => 'logout', - 'order' => 99999, - 'href' => $logoutUrl, - 'name' => $l->t('Log out'), - 'icon' => $this->urlGenerator->imagePath('core', 'actions/logout.svg'), - ]); - } + // Logout + $this->add([ + 'type' => 'settings', + 'id' => 'logout', + 'order' => 99999, + 'href' => $logoutUrl, + 'name' => $l->t('Log out'), + 'icon' => $this->urlGenerator->imagePath('core', 'actions/logout.svg'), + ]); if ($this->isSubadmin()) { // User management