1
1
Fork 0

ping.php improvement: Prevent $register_count from being undefined

This commit is contained in:
Hypolite Petovan 2016-11-22 14:17:05 -05:00
parent cc242d52f8
commit e0322546d8

View file

@ -50,6 +50,7 @@ function ping_init(&$a) {
$home_count = 0; $home_count = 0;
$network_count = 0; $network_count = 0;
$register_count = 0;
$groups_unseen = array(); $groups_unseen = array();
$forums_unseen = array(); $forums_unseen = array();
@ -132,8 +133,6 @@ function ping_init(&$a) {
if ($regs) { if ($regs) {
$register_count = $regs[0]['total']; $register_count = $regs[0]['total'];
} }
} else {
$register_count = 0;
} }
$all_events = 0; $all_events = 0;