]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
lib/ping.php - Fix PHP 7.3 Warning switch continue -> break
authorDiogo Cordeiro <diogo@fc.up.pt>
Sun, 5 May 2019 13:03:55 +0000 (14:03 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Mon, 6 May 2019 22:27:38 +0000 (23:27 +0100)
lib/ping.php

index 14639d76d2117d6ac3be3bf8df052baf37b0b05e..eb2674e9f31f3ac0618a5e462915af8e1c224da5 100644 (file)
@@ -58,13 +58,13 @@ function ping_broadcast_notice($notice) {
             } catch (Exception $e) {
                 common_log(LOG_ERR,
                            "Exception pinging $notify_url: " . $e->getMessage());
-                continue;
+                break;
             }
 
             if (!$httpResponse || mb_strlen($httpResponse->getBody()) == 0) {
                 common_log(LOG_WARNING,
                            "XML-RPC empty results for ping ($notify_url, $notice->id) ");
-                continue;
+                break;
             }
 
             $response = xmlrpc_decode($httpResponse->getBody());