commit
fa8be545b2
|
@ -123,11 +123,10 @@ function ping_init(&$a) {
|
||||||
$mail = count($mails);
|
$mail = count($mails);
|
||||||
|
|
||||||
if ($a->config['register_policy'] == REGISTER_APPROVE && is_site_admin()){
|
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");
|
$regs = q("SELECT `contact`.`name`, `contact`.`url`, `contact`.`micro`, `register`.`created` FROM `contact` RIGHT JOIN `register` ON `register`.`uid`=`contact`.`uid` WHERE `contact`.`self`=1");
|
||||||
if ($regs)
|
$register = count($regs);
|
||||||
$register = $regs[0]['total'];
|
|
||||||
} else {
|
} else {
|
||||||
$register = "0";
|
$register = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$all_events = 0;
|
$all_events = 0;
|
||||||
|
|
Loading…
Reference in a new issue