]> git.mxchange.org Git - friendica.git/commitdiff
fix registration request pings
authorfriendica <info@friendica.com>
Thu, 5 Jan 2012 00:14:26 +0000 (16:14 -0800)
committerfriendica <info@friendica.com>
Thu, 5 Jan 2012 00:14:26 +0000 (16:14 -0800)
mod/ping.php

index e74ef8314cb6626098192439fab4cda4f9355ab5..5b9159fa4619b328d1754b94f1e4d265da52dea5 100644 (file)
@@ -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";
                }