From 04a7291303c1ec1b23b5e0334e28f550d35513e0 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Tue, 21 Nov 2017 03:45:13 +0100 Subject: [PATCH] Bugfix: show no registrations notifs if there are none --- mod/ping.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }