From: rabuzarus Date: Tue, 21 Nov 2017 02:45:13 +0000 (+0100) Subject: Bugfix: show no registrations notifs if there are none X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=04a7291303c1ec1b23b5e0334e28f550d35513e0;p=friendica.git Bugfix: show no registrations notifs if there are none --- diff --git a/mod/ping.php b/mod/ping.php index 3ab316d45c..c6f67d397d 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -202,13 +202,13 @@ function ping_init(App $a) if ($a->config['register_policy'] == REGISTER_APPROVE && is_site_admin()) { $regs = q( - "SELECT `contact`.`name`, `contact`.`url`, `contact`.`micro`, `register`.`created`, COUNT(*) AS `total` + "SELECT `contact`.`name`, `contact`.`url`, `contact`.`micro`, `register`.`created` FROM `contact` RIGHT JOIN `register` ON `register`.`uid` = `contact`.`uid` WHERE `contact`.`self` = 1" ); if (DBM::is_result($regs)) { - $register_count = $regs[0]['total']; + $register_count = count($regs); } }