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