diff --git a/web/root/ecwebv3/sidebar/002-whosOnline.ssjs b/web/root/ecwebv3/sidebar/002-whosOnline.ssjs index 1465a54159d7243eaf46a8dd01bca7e46b1f15b7..0e2e443443e7941e550f165d275a97a3c9d721e3 100644 --- a/web/root/ecwebv3/sidebar/002-whosOnline.ssjs +++ b/web/root/ecwebv3/sidebar/002-whosOnline.ssjs @@ -5,7 +5,9 @@ if(http_request.query.hasOwnProperty("action") && http_request.query.action.toSt print("<b>Who's online</b><br><br>"); print("<table border=0 cellpadding=0 cellspacing=0 class='font'>"); - for(n = 0; n < 6; n++) { + for(n = 0; n < system.node_list.length; n++) { + if(system.node_list[n] === undefined) + continue; print("<tr><td>Node " + (n + 1) + ": </td>"); if(system.node_list[n].status == 3) print("<td>" + system.username(system.node_list[n].useron) + "</td></tr><tr><td> </td><td style=font-style:italic;>" + NodeAction[system.node_list[n].action] + "</td></tr>");