Browse Source

fixed client count display

subDesTagesMitExtraKaese 3 years ago
parent
commit
5f4ec073a9
1 changed files with 1 additions and 1 deletions
  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);