diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-11-28 14:40:45 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-28 14:40:45 -0100 |
commit | f08865eeedffd8054dbfc93c69f396a346077eee (patch) | |
tree | d5ec26280f587879fe83421c471e91e873979eeb /lib/Controller/NavigationController.php | |
parent | 107c49d1412fee86bb30d03fd3e65aebc2de38f4 (diff) | |
parent | 13d49b6ebe27df5d6a69e9d5940f92946cc93817 (diff) |
Merge pull request #69 from nextcloud-gmbh/small-fix
small fixes
Diffstat (limited to 'lib/Controller/NavigationController.php')
-rw-r--r-- | lib/Controller/NavigationController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Controller/NavigationController.php b/lib/Controller/NavigationController.php index 864b9eb8..37f7050f 100644 --- a/lib/Controller/NavigationController.php +++ b/lib/Controller/NavigationController.php @@ -125,7 +125,6 @@ class NavigationController extends Controller { * @NoSubAdminRequired * * @return TemplateResponse - * @throws NoUserException */ public function navigate($path = ''): TemplateResponse { $data = [ @@ -162,6 +161,10 @@ class NavigationController extends Controller { $data['serverData']['firstrun'] = true; } catch (AccountAlreadyExistsException $e) { // we do nothing + } catch (NoUserException $e) { + // well, should not happens + } catch (SocialAppConfigException $e) { + // neither. } return new TemplateResponse(Application::APP_NAME, 'main', $data); @@ -231,7 +234,6 @@ class NavigationController extends Controller { * @param $username * * @return RedirectResponse|PublicTemplateResponse - * @throws NoUserException */ public function public($username) { if (\OC::$server->getUserSession() |