mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: wrong count for online users :-P
This commit is contained in:
@@ -156,7 +156,7 @@ include ("GameEngine/Lang/".LANG.".php");
|
||||
<td><?php
|
||||
|
||||
$return = mysqli_query($link,"SELECT Count(*) FROM " . TB_PREFIX . "users WHERE timestamp > ".(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;
|
||||
|
||||
?></td>
|
||||
|
||||
Reference in New Issue
Block a user