aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Admin.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-04-16 04:42:45 -0700
committernobody <nobody@zotlabs.com>2021-04-16 04:42:45 -0700
commita96345401f47be71a6eef531e204c0e25b792a16 (patch)
tree4afde386815934f9f395353b0d1d38cfd7f2592c /Zotlabs/Module/Admin.php
parent9359fc065c72243bd85f0fc3db842976f07183cc (diff)
parent7ccd7b439f5a029384ecb28911a0df6f6d658231 (diff)
downloadvolse-hubzilla-a96345401f47be71a6eef531e204c0e25b792a16.tar.gz
volse-hubzilla-a96345401f47be71a6eef531e204c0e25b792a16.tar.bz2
volse-hubzilla-a96345401f47be71a6eef531e204c0e25b792a16.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Module/Admin.php')
-rw-r--r--Zotlabs/Module/Admin.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Module/Admin.php b/Zotlabs/Module/Admin.php
index 88b84b9d2..44c10b339 100644
--- a/Zotlabs/Module/Admin.php
+++ b/Zotlabs/Module/Admin.php
@@ -101,11 +101,14 @@ class Admin extends \Zotlabs\Web\Controller {
// pending registrations
- $pdg = q("SELECT account.*, register.hash from account left join register on account_id = register.uid where (account_flags & %d ) > 0 ",
- intval(ACCOUNT_PENDING)
+ // $pdg = q("SELECT account.*, register.reg_hash from account left join register on account_id = register.reg_uid // where (account_flags & %d ) > 0 ",
+ // intval(ACCOUNT_PENDING)
+ // );
+ $pdg = q("SELECT COUNT(*) AS pdg FROM register WHERE reg_vital = 1 AND reg_expires > '%s' ",
+ dbesc(date('Y-m-d H:i:s'))
);
- $pending = (($pdg) ? count($pdg) : 0);
+ $pending = ($pdg ? $pdg[0]['pdg'] : 0);
// available channels, primary and clones
$channels = array();