hubzilla issue #1086, pending count on admin summary page

This commit is contained in:
zotlabs 2018-05-19 00:54:47 -07:00
parent dae89ce91c
commit 8b4af7cf0b

View File

@ -100,8 +100,12 @@ class Admin extends \Zotlabs\Web\Controller {
} }
// pending registrations // 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 // available channels, primary and clones
$channels = array(); $channels = array();