From fbe6c5860bcb53ad3150f66f5034a2d69c878aae Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Fri, 30 Jul 2021 22:10:16 +0200
Subject: [PATCH] FIX: php 8 compatibility

---
 public_html/deployment/classes/user.class.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/public_html/deployment/classes/user.class.php b/public_html/deployment/classes/user.class.php
index e8d0afe6..28583404 100644
--- a/public_html/deployment/classes/user.class.php
+++ b/public_html/deployment/classes/user.class.php
@@ -201,7 +201,8 @@ class user {
      */
     public function showDenied(){
         return '<div class="alert alert-danger" role="alert">'
-        . ($this->_sUsername ? ' User: '.$this->_sUsername : ''
+        . ($this->_sUsername ? ' User: '.$this->_sUsername : '')
+        . ($this->_sUsername 
             ? t("class-user-error-deny-no-role").'<br>('.$this->_sLastCheckedPermission.')'
             : t("class-user-error-login-required")
         )
-- 
GitLab