aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-03 13:50:23 -0800
committerfriendica <info@friendica.com>2013-01-03 13:50:23 -0800
commit7df33bb96366714116f8986f4a0a7d22f26729bf (patch)
tree08ac5b143f10833415119b8da1237647c602566b /mod/ping.php
parent781f49768ad1659923a9e2c67bc43df6eeb43a6e (diff)
downloadvolse-hubzilla-7df33bb96366714116f8986f4a0a7d22f26729bf.tar.gz
volse-hubzilla-7df33bb96366714116f8986f4a0a7d22f26729bf.tar.bz2
volse-hubzilla-7df33bb96366714116f8986f4a0a7d22f26729bf.zip
fix register_policy globally
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php2
1 files changed, 1 insertions, 1 deletions
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']);