mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed user array type in MeshCore.
This commit is contained in:
parent
b87342b937
commit
7f2bcbc919
3 changed files with 3 additions and 3 deletions
|
@ -3895,7 +3895,7 @@
|
|||
}
|
||||
|
||||
function getUserShortStr(node) {
|
||||
if (node == null || node.users == null || node.users.length == 0) return '';
|
||||
if (node == null || node.users == null || (!Array.isArray(node.users)) || node.users.length == 0) return '';
|
||||
if (node.users.length > 1) { return '<span title="' + EscapeHtml(node.users.join(', ')) + '">' + nobreak(format("{0} users", node.users.length)) + '</span>'; }
|
||||
var u = node.users[0], su = u, i = u.indexOf('\\');
|
||||
if (i > 0) { su = u.substring(i + 1); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue