From 92e827330c023f9f22f4483d5b04b0708120c18a Mon Sep 17 00:00:00 2001 From: Balló György Date: Sat, 2 Aug 2014 14:18:45 +0200 Subject: Count users in "Trusted User & Developer" group as TU This reflects the changes in 3610f3c. Signed-off-by: Lukas Fleischer --- web/lib/stats.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib/stats.inc.php') diff --git a/web/lib/stats.inc.php b/web/lib/stats.inc.php index da3542a1..d63767c9 100644 --- a/web/lib/stats.inc.php +++ b/web/lib/stats.inc.php @@ -62,7 +62,7 @@ function general_stats_table() { $q = "SELECT count(*) FROM Users"; $user_count = db_cache_value($q, 'user_count'); - $q = "SELECT count(*) FROM Users,AccountTypes WHERE Users.AccountTypeID = AccountTypes.ID AND AccountTypes.AccountType = 'Trusted User'"; + $q = "SELECT count(*) FROM Users,AccountTypes WHERE Users.AccountTypeID = AccountTypes.ID AND (AccountTypes.AccountType = 'Trusted User' OR AccountTypes.AccountType = 'Trusted User & Developer')"; $tu_count = db_cache_value($q, 'tu_count'); $targstamp = intval(strtotime("-7 days")); -- cgit v1.2.3-24-g4f1b