From 6b3b0cf82910070fd30ae19b237c99483639d76a Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Fri, 20 Oct 2017 10:04:55 +0200 Subject: [PATCH] fix: newsbox1 best player statistics to include Admin if allowed --- Templates/News/newsbox1.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/News/newsbox1.tpl b/Templates/News/newsbox1.tpl index c6777efd..49bc74cb 100644 --- a/Templates/News/newsbox1.tpl +++ b/Templates/News/newsbox1.tpl @@ -2,7 +2,7 @@ 5 AND tribe<=3 AND tribe > 0 ORDER BY oldrank ASC Limit 1")); +$top_rank = mysqli_fetch_assoc(mysqli_query($GLOBALS['link'],"SELECT * FROM ".TB_PREFIX."users WHERE ".(INCLUDE_ADMIN ? '' : 'access< 8 AND ')."id > 5 AND tribe<=3 AND tribe > 0 ORDER BY oldrank ASC Limit 1")); ?>