Skip to content

Commit

Permalink
Update ddns_update.php
Browse files Browse the repository at this point in the history
Correction pour évité le retour vide ne cas de code 20x
  • Loading branch information
vincentberry authored Jan 3, 2024
1 parent a16fca4 commit b3dec13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddns_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function OnlineApi($URL, $POSTFIELDS = "", $method = 'GET')

curl_close($ch);
if ($httpCode == 200 || $httpCode == 201 || $httpCode == 202 || $httpCode == 203 || $httpCode == 204) {
return "ok";
return $result ?: "ok";
}elseif ($httpCode == 401 && isset($result['code'])){
ApiErrorOnline($result['code']);
return null;
Expand Down

0 comments on commit b3dec13

Please sign in to comment.