From 1e93057c52ff456656813b64a99f976d1706f7e1 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sun, 24 Sep 2023 20:32:52 -0700 Subject: [PATCH] Fixed user edit screen links. --- views/default.handlebars | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index 39fbb2c3..7e1cda93 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -15759,19 +15759,19 @@ var emailLink = ''; if (user.email) { emailLink = ' '; } if (((user.siteadmin != 0xFFFFFFFF) || (userinfo.siteadmin == 0xFFFFFFFF))) { // If we are not site admin, we can't change a admin email or real name - x += addDeviceAttribute("Email", everify + email + emailLink + ' '); - x += addDeviceAttribute("Real Name", realname + ' '); + x += addDeviceAttribute("Email", '' + everify + email + emailLink + ' '); + x += addDeviceAttribute("Real Name", '' + realname + ' '); } else { x += addDeviceAttribute("Email", everify + email + emailLink); x += addDeviceAttribute("Real Name", realname); } if ((features & 0x02000000) || (user.phone != null)) { // If SMS is enabled on the server or user has a phone number - x += addDeviceAttribute("Phone Number", (user.phone?user.phone:('' + "None" + '')) + ' '); + x += addDeviceAttribute("Phone Number", '' + (user.phone?user.phone:('' + "None" + '')) + ' '); } if ((features2 & 0x02000000) || (user.msghandle != null)) { // If user messaging is enabled on the server or user has a messaging handle - x += addDeviceAttribute("Messaging", ' ' + (user.msghandle?user.msghandle:('' + "None" + '')) + ' '); + x += addDeviceAttribute("Messaging", ' ' + (user.msghandle?user.msghandle:('' + "None" + '')) + ' '); } // Display features @@ -15794,7 +15794,7 @@ if (userFeatures == '') { userFeatures = '' + "None" + ''; } x += addDeviceAttribute("Features", addLink(userFeatures, 'p20edituserfeatures()')); - x += addDeviceAttribute("Server Rights", premsg + msg.join(', ') + ' '); + x += addDeviceAttribute("Server Rights", '' + premsg + msg.join(', ') + ' '); if (user.quota) x += addDeviceAttribute("Server Quota", EscapeHtml(parseInt(user.quota) / 1024) + ' k'); x += addDeviceAttribute("Creation", printDateTime(new Date(user.creation * 1000))); if (user.login) x += addDeviceAttribute("Last Login", printDateTime(new Date(user.login * 1000)));