aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-02-17 22:47:08 +0100
committerMax Kostikov <max@kostikov.co>2019-02-17 22:47:08 +0100
commitb070503e773e5b9a95639b0df7e4bb515855054b (patch)
tree629c19f9de20c1d2072ab1ff76795a485dd23b81 /Zotlabs
parent6e3bc7736934956d88e971a4cd11f234e4cc1f60 (diff)
downloadvolse-hubzilla-b070503e773e5b9a95639b0df7e4bb515855054b.tar.gz
volse-hubzilla-b070503e773e5b9a95639b0df7e4bb515855054b.tar.bz2
volse-hubzilla-b070503e773e5b9a95639b0df7e4bb515855054b.zip
MySQL 8 admin summary compatibility
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Admin.php b/Zotlabs/Module/Admin.php
index 8ccdaf4f5..88b84b9d2 100644
--- a/Zotlabs/Module/Admin.php
+++ b/Zotlabs/Module/Admin.php
@@ -86,7 +86,7 @@ class Admin extends \Zotlabs\Web\Controller {
// list total user accounts, expirations etc.
$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(),
dbesc(NULL_DATE),