diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/ping.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/ping.php b/mod/ping.php index 0e3ad83db..b0a2e4b1d 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -326,8 +326,10 @@ function ping_init(&$a) { if($mails) $result['mail'] = intval($mails[0]['total']); - if ($a->config['system']['register_policy'] == REGISTER_APPROVE && is_site_admin()){ - $regs = q("SELECT `contact`.`name`, `contact`.`url`, `contact`.`micro`, `register`.`created`, COUNT(*) as `total` FROM `contact` RIGHT JOIN `register` ON `register`.`uid`=`contact`.`uid` WHERE `contact`.`self`=1"); + if ($a->config['system']['register_policy'] == REGISTER_APPROVE && is_site_admin()) { + $regs = q("SELECT count(account_id) as total from account where (account_flags & %d)", + intval(ACCOUNT_PENDING) + ); if($regs) $result['register'] = intval($regs[0]['total']); } |