From ca22e6c7ef01afe2c7b573ccc847dc61939ed0fd Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sun, 22 Oct 2017 21:53:02 +0200 Subject: [PATCH] fix: wrong count for online users :-P --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 29d7a5d4..edd9c46c 100644 --- a/index.php +++ b/index.php @@ -156,7 +156,7 @@ include ("GameEngine/Lang/".LANG.".php"); ".(time() - (60*10))." AND tribe!=0 AND tribe!=4 AND tribe!=5"); - $online=(!empty($return))? mysqli_num_rows($return):0; + $online=(!empty($return))? mysqli_fetch_assoc($return)['Total']:0; echo $online; ?>