diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-05-24 05:35:50 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-05-24 05:35:50 -0400 |
commit | fc6b337bbbd2fd3b5412c8b957122830f73feb2d (patch) | |
tree | e8417e561ac7445a4018c0cf3bf722779493c430 /Zotlabs/Module/Admin.php | |
parent | 40d99c171678654817e392b7f59050dccce770a8 (diff) | |
parent | 9cf8931136c703c66d0bf83e4c6b8fb7f4d2cf0b (diff) | |
download | volse-hubzilla-fc6b337bbbd2fd3b5412c8b957122830f73feb2d.tar.gz volse-hubzilla-fc6b337bbbd2fd3b5412c8b957122830f73feb2d.tar.bz2 volse-hubzilla-fc6b337bbbd2fd3b5412c8b957122830f73feb2d.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
Diffstat (limited to 'Zotlabs/Module/Admin.php')
-rw-r--r-- | Zotlabs/Module/Admin.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Module/Admin.php b/Zotlabs/Module/Admin.php index 30f3dfa48..934312efe 100644 --- a/Zotlabs/Module/Admin.php +++ b/Zotlabs/Module/Admin.php @@ -100,8 +100,12 @@ class Admin extends \Zotlabs\Web\Controller { } // pending registrations - $r = q("SELECT COUNT(id) AS rtotal FROM register WHERE uid != '0'"); - $pending = $r[0]['rtotal']; + + $pdg = q("SELECT account.*, register.hash from account left join register on account_id = register.uid where (account_flags & %d ) > 0 ", + intval(ACCOUNT_PENDING) + ); + + $pending = (($pdg) ? count($pdg) : 0); // available channels, primary and clones $channels = array(); |