fix: [exception] speculative fix to a check causing a 500

cli-modification-summary
iglocska 2022-08-24 11:43:36 +02:00
parent 4c1ce31d50
commit fac19e0a3c
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -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;