aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-09 13:20:10 -0800
committerfriendica <info@friendica.com>2013-02-09 13:20:10 -0800
commite0cbbbf918e17d1c6b415c2f9bd4780b97c4f204 (patch)
treea1a068efc936d38febcb808daa230f2404564ff5 /mod
parent6022a9e9cdf12d60a138f06300285f231d2c2976 (diff)
downloadvolse-hubzilla-e0cbbbf918e17d1c6b415c2f9bd4780b97c4f204.tar.gz
volse-hubzilla-e0cbbbf918e17d1c6b415c2f9bd4780b97c4f204.tar.bz2
volse-hubzilla-e0cbbbf918e17d1c6b415c2f9bd4780b97c4f204.zip
smarty support in intltext, fix old pending accounts query in ping, log failed email register notify
Diffstat (limited to 'mod')
-rw-r--r--mod/ping.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/ping.php b/mod/ping.php
index 0e3ad83db..b0a2e4b1d 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -326,8 +326,10 @@ function ping_init(&$a) {
if($mails)
$result['mail'] = intval($mails[0]['total']);
- 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 ($a->config['system']['register_policy'] == REGISTER_APPROVE && is_site_admin()) {
+ $regs = q("SELECT count(account_id) as total from account where (account_flags & %d)",
+ intval(ACCOUNT_PENDING)
+ );
if($regs)
$result['register'] = intval($regs[0]['total']);
}