ping.php: Prevent $register_count from being undefined
$home_count = 0;
$network_count = 0;
+ $register_count = 0;
$groups_unseen = array();
$forums_unseen = array();
// Find out how unseen network posts are spread across groups
$group_counts = groups_count_unseen();
if (dbm::is_result($group_counts)) {
- foreach ($groups_counts as $group_count) {
+ foreach ($group_counts as $group_count) {
if ($group_count['count'] > 0) {
$groups_unseen[] = $group_count;
}
if ($regs) {
$register_count = $regs[0]['total'];
}
- } else {
- $register_count = 0;
}
$all_events = 0;