From e0322546d861e451e0bc20d5cafcd6b94c40581c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 22 Nov 2016 14:17:05 -0500 Subject: [PATCH] ping.php improvement: Prevent $register_count from being undefined --- mod/ping.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/ping.php b/mod/ping.php index fd42673c52..81a07a3d88 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -50,6 +50,7 @@ function ping_init(&$a) { $home_count = 0; $network_count = 0; + $register_count = 0; $groups_unseen = array(); $forums_unseen = array(); @@ -132,8 +133,6 @@ function ping_init(&$a) { if ($regs) { $register_count = $regs[0]['total']; } - } else { - $register_count = 0; } $all_events = 0; -- 2.39.5