aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Admin.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-11 11:59:49 +0000
committerMario <mario@mariovavti.com>2021-05-11 11:59:49 +0000
commit26e851ff7fc074592f93088dbd96713b22defe8b (patch)
treee727d9a83590b152ddd63a8c8e7756835c45de4a /Zotlabs/Module/Admin.php
parent406ca206347152cf4acbdcb81fc8152d83f99182 (diff)
parent89ec043ce1183dbae5ff10a994f0f819a8544ba9 (diff)
downloadvolse-hubzilla-26e851ff7fc074592f93088dbd96713b22defe8b.tar.gz
volse-hubzilla-26e851ff7fc074592f93088dbd96713b22defe8b.tar.bz2
volse-hubzilla-26e851ff7fc074592f93088dbd96713b22defe8b.zip
Merge branch '5.6RC'
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();