diff --git a/src/main/java/org/olat/gui/control/OlatFooterController.java b/src/main/java/org/olat/gui/control/OlatFooterController.java
index 057ccf6681a23863f0bbc2c2e9abfead60562e8d..29df761002fbeca04c4e6716ff4ed3e7e825c012 100644
--- a/src/main/java/org/olat/gui/control/OlatFooterController.java
+++ b/src/main/java/org/olat/gui/control/OlatFooterController.java
@@ -116,13 +116,11 @@ public class OlatFooterController extends BasicController implements LockableCon
 		// Push information about user
 		if (!isGuest && usess.isAuthenticated()) {
 			olatFootervc.contextPut("loggedIn", Boolean.TRUE);
-			if(isInvitee) {
-				String fullName = CoreSpringFactory.getImpl(UserManager.class).getUserDisplayName(ureq.getIdentity());
-				olatFootervc.contextPut("username", StringHelper.escapeHtml(fullName) + " " + translate("logged.in.invitee"));
-			} else {
-				String fullName = CoreSpringFactory.getImpl(UserManager.class).getUserDisplayName(ureq.getIdentity());
-				olatFootervc.contextPut("username", StringHelper.escapeHtml(fullName));
+			String fullName = StringHelper.escapeHtml(CoreSpringFactory.getImpl(UserManager.class).getUserDisplayName(ureq.getIdentity()));
+			if (isInvitee) {
+				fullName = fullName + " " + translate("logged.in.invitee");
 			}
+			olatFootervc.contextPut("username", fullName);
 		} else {
 			olatFootervc.contextPut("loggedIn", Boolean.FALSE);
 		}