General fixes

+Fixed a bug that didn't show total and online users in the homepage
This commit is contained in:
iopietro
2018-05-29 19:06:05 +02:00
parent b629827b62
commit b052582fed
+2 -2
View File
@@ -130,7 +130,7 @@ AccessLogger::logRequest();
<td><?php
$return = mysqli_query($link, "SELECT Count(*) as Total FROM " . TB_PREFIX . "users WHERE tribe IN(1, 2, 3)");
echo !empty($return) ? mysqli_fetch_assoc($return)['Total'] : 0;
echo ($users = !empty($return) ? mysqli_fetch_assoc($return)['Total'] : 0);
?></td>
</tr>
@@ -159,7 +159,7 @@ AccessLogger::logRequest();
<td><?php
$return = mysqli_query($link,"SELECT Count(*) as Total FROM " . TB_PREFIX . "users WHERE timestamp > ".(time() - (60*10))." AND tribe IN(1, 2, 3)");
echo !empty($return) ? mysqli_fetch_assoc($return)['Total'] : 0;
echo ($online = !empty($return) ? mysqli_fetch_assoc($return)['Total'] : 0);
?></td>
</tr>