1
0
Fork 0
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:
Ylian Saint-Hilaire 2020-11-02 09:47:02 -08:00
parent b87342b937
commit 7f2bcbc919
3 changed files with 3 additions and 3 deletions

View file

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