From 7df33bb96366714116f8986f4a0a7d22f26729bf Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 3 Jan 2013 13:50:23 -0800 Subject: fix register_policy globally --- mod/ping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/ping.php') diff --git a/mod/ping.php b/mod/ping.php index 6b76c33ca..76d139711 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -202,7 +202,7 @@ function ping_init(&$a) { if($mails) $result['mail'] = intval($mails[0]['total']); - if ($a->config['register_policy'] == REGISTER_APPROVE && is_site_admin()){ + 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($regs) $result['register'] = intval($regs[0]['total']); -- cgit v1.2.3