]> git.mxchange.org Git - friendica.git/commitdiff
ping.php improvement: Prevent $register_count from being undefined
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 22 Nov 2016 19:17:05 +0000 (14:17 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 22 Nov 2016 19:17:05 +0000 (14:17 -0500)
mod/ping.php

index fd42673c52518d3f2bf3ae7dfe8c9c589ea7aad7..81a07a3d889ac5c84000f73978b52f2e1f5a87ab 100644 (file)
@@ -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;