From b052582fed504d2ca27c99107f25d62e39c138d8 Mon Sep 17 00:00:00 2001 From: iopietro Date: Tue, 29 May 2018 19:06:05 +0200 Subject: [PATCH] General fixes +Fixed a bug that didn't show total and online users in the homepage --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 73047998..17392619 100644 --- a/index.php +++ b/index.php @@ -130,7 +130,7 @@ @@ -159,7 +159,7 @@ ".(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); ?>