lib/ping.php - Fix PHP 7.3 Warning switch continue -> break

This commit is contained in:
Diogo Cordeiro 2019-05-05 14:03:55 +01:00
parent 688fa4839c
commit d2e6519bad
1 changed files with 2 additions and 2 deletions

View File

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