mirror of
https://github.com/friendica/friendica
synced 2024-11-10 12:22:53 +00:00
Merge pull request #3927 from rabuzarus/20171121_-_fix_reg_notifs
Bugfix: show no registrations notifs if there are none
This commit is contained in:
commit
33ad6b6d7e
1 changed files with 2 additions and 2 deletions
|
@ -202,13 +202,13 @@ function ping_init(App $a)
|
||||||
|
|
||||||
if ($a->config['register_policy'] == REGISTER_APPROVE && is_site_admin()) {
|
if ($a->config['register_policy'] == REGISTER_APPROVE && is_site_admin()) {
|
||||||
$regs = q(
|
$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`
|
FROM `contact` RIGHT JOIN `register` ON `register`.`uid` = `contact`.`uid`
|
||||||
WHERE `contact`.`self` = 1"
|
WHERE `contact`.`self` = 1"
|
||||||
);
|
);
|
||||||
|
|
||||||
if (DBM::is_result($regs)) {
|
if (DBM::is_result($regs)) {
|
||||||
$register_count = $regs[0]['total'];
|
$register_count = count($regs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue