diff options
author | friendica <info@friendica.com> | 2012-01-04 16:14:26 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-01-04 16:14:26 -0800 |
commit | b0c3dc00b9252d896d233747bdd317fb5c360d51 (patch) | |
tree | 5fbaaf16be7931b5cec1fc679d8de627c38a238e /mod | |
parent | 378f86d0463ef26fbb77df4db6820436ff48a648 (diff) | |
download | volse-hubzilla-b0c3dc00b9252d896d233747bdd317fb5c360d51.tar.gz volse-hubzilla-b0c3dc00b9252d896d233747bdd317fb5c360d51.tar.bz2 volse-hubzilla-b0c3dc00b9252d896d233747bdd317fb5c360d51.zip |
fix registration request pings
Diffstat (limited to 'mod')
-rw-r--r-- | mod/ping.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/ping.php b/mod/ping.php index e74ef8314..5b9159fa4 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -128,9 +128,9 @@ function ping_init(&$a) { ); $mail = $mails[0]['total']; - if ($a->config['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"); - $register = $regs[0]['total']; + if ($a->config['register_policy'] == REGISTER_APPROVE && is_site_admin()) { + $regs = q("select register.created, contact.name, contact.url, contact.micro from register left join contact on register.uid = contact.uid where contact.self = 1"); + $register = count($regs); } else { $register = "0"; } |