From fac19e0a3ca1e6b9445f1062b2e6216f48b8a453 Mon Sep 17 00:00:00 2001 From: iglocska Date: Wed, 24 Aug 2022 11:43:36 +0200 Subject: [PATCH] fix: [exception] speculative fix to a check causing a 500 --- src/Controller/Component/Navigation/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;