MySQL 8 admin summary compatibility
This commit is contained in:
parent
6e3bc77369
commit
b070503e77
@ -86,7 +86,7 @@ class Admin extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
// list total user accounts, expirations etc.
|
// list total user accounts, expirations etc.
|
||||||
$accounts = array();
|
$accounts = array();
|
||||||
$r = q("SELECT COUNT(*) AS total, COUNT(CASE WHEN account_expires > %s THEN 1 ELSE NULL END) AS expiring, COUNT(CASE WHEN account_expires < %s AND account_expires > '%s' THEN 1 ELSE NULL END) AS expired, COUNT(CASE WHEN (account_flags & %d)>0 THEN 1 ELSE NULL END) AS blocked FROM account",
|
$r = q("SELECT COUNT(CASE WHEN account_id > 0 THEN 1 ELSE NULL END) AS total, COUNT(CASE WHEN account_expires > %s THEN 1 ELSE NULL END) AS expiring, COUNT(CASE WHEN account_expires < %s AND account_expires > '%s' THEN 1 ELSE NULL END) AS expired, COUNT(CASE WHEN (account_flags & %d)>0 THEN 1 ELSE NULL END) AS blocked FROM account",
|
||||||
db_utcnow(),
|
db_utcnow(),
|
||||||
db_utcnow(),
|
db_utcnow(),
|
||||||
dbesc(NULL_DATE),
|
dbesc(NULL_DATE),
|
||||||
|
Reference in New Issue
Block a user