diff --git a/src/Controller/Component/Navigation/base.php b/src/Controller/Component/Navigation/base.php index daf39ce..9db4e80 100644 --- a/src/Controller/Component/Navigation/base.php +++ b/src/Controller/Component/Navigation/base.php @@ -12,7 +12,9 @@ class BaseNavigation { $this->bcf = $bcf; $this->request = $request; - $this->currentUserId = $this->request->getAttribute('identity')->getIdentifier(); + if (!empty($this->request->getAttribute('identity')->getIdentifier())) { + $this->currentUserId = $this->request->getAttribute('identity')->getIdentifier(); + } $this->viewVars = $viewVars; }