feature/webview-softphone #1
@@ -177,7 +177,6 @@ class TWP_Auto_Updater {
|
|||||||
|
|
||||||
$response = curl_exec($ch);
|
$response = curl_exec($ch);
|
||||||
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||||
curl_close($ch);
|
|
||||||
|
|
||||||
if (!$response || $http_code !== 200) {
|
if (!$response || $http_code !== 200) {
|
||||||
error_log("TWP Auto-Updater: Gitea API returned status $http_code");
|
error_log("TWP Auto-Updater: Gitea API returned status $http_code");
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ class TWP_FCM {
|
|||||||
|
|
||||||
$response = curl_exec($ch);
|
$response = curl_exec($ch);
|
||||||
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||||
curl_close($ch);
|
|
||||||
|
|
||||||
if ($http_code !== 200) {
|
if ($http_code !== 200) {
|
||||||
error_log("TWP FCM: Failed to send notification. HTTP $http_code: $response");
|
error_log("TWP FCM: Failed to send notification. HTTP $http_code: $response");
|
||||||
@@ -173,7 +172,6 @@ class TWP_FCM {
|
|||||||
|
|
||||||
$response = curl_exec($ch);
|
$response = curl_exec($ch);
|
||||||
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||||
curl_close($ch);
|
|
||||||
|
|
||||||
if ($http_code !== 200) {
|
if ($http_code !== 200) {
|
||||||
error_log("TWP FCM: Failed to get access token. HTTP $http_code: $response");
|
error_log("TWP FCM: Failed to get access token. HTTP $http_code: $response");
|
||||||
|
|||||||
Reference in New Issue
Block a user