Explorar el Código

fixed client count display

subDesTagesMitExtraKaese hace 3 años
padre
commit
5f4ec073a9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ts3-viewer/index.php

+ 1 - 1
ts3-viewer/index.php

@@ -123,7 +123,7 @@
       }
 
       if(tree.events.length > 0)
-        inp.nextSibling.textContent = tree.events[0][2] != 0 ? tree.events[0][2] : '';
+        inp.nextSibling.textContent = tree.events[tree.events.length-1][2] != 0 ? tree.events[tree.events.length-1][2] : '';
 
       inp.nextSibling.nextSibling.innerHTML = formatHeadings(tree.name);