Merge remote-tracking branch 'mike/master' into dev

This commit is contained in:
Mario Vavti 2018-05-19 10:20:14 +02:00
commit 6abbadf6c8

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();