Don't count the system user as user
This commit is contained in:
parent
87a405e0c2
commit
6b46fdb54e
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class Summary extends BaseAdmin
|
||||||
];
|
];
|
||||||
|
|
||||||
$users = 0;
|
$users = 0;
|
||||||
$pageFlagsCountStmt = DBA::p('SELECT `page-flags`, COUNT(`uid`) AS `count` FROM `user` GROUP BY `page-flags`');
|
$pageFlagsCountStmt = DBA::p('SELECT `page-flags`, COUNT(`uid`) AS `count` FROM `user` WHERE `uid` != ? GROUP BY `page-flags`', 0);
|
||||||
while ($pageFlagsCount = DBA::fetch($pageFlagsCountStmt)) {
|
while ($pageFlagsCount = DBA::fetch($pageFlagsCountStmt)) {
|
||||||
$accounts[$pageFlagsCount['page-flags']][1] = $pageFlagsCount['count'];
|
$accounts[$pageFlagsCount['page-flags']][1] = $pageFlagsCount['count'];
|
||||||
$users += $pageFlagsCount['count'];
|
$users += $pageFlagsCount['count'];
|
||||||
|
|
Loading…
Reference in a new issue