Skip to content

Commit

Permalink
Update app.model.php
Browse files Browse the repository at this point in the history
fixed count error when checking for results
  • Loading branch information
milsaware committed Jul 19, 2023
1 parent 5840052 commit 1f07ad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SOURCE/httpd.private/app/models/app.model.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public static function checkCloudFlare(){
return 0;
}else{
$name_check = 0;
for($i = 0; $i < count($d); $i++){
for($i = 0; $i < count($d['result']); $i++){
if($d['result'][$i]['name'] == $dns_name && $d['result'][$i]['type'] == 'A'){
$newurl = 'https://api.cloudflare.com/client/v4/zones/'.$zone_id.'/dns_records/'.$d['result'][$i]['id'];
$data = array(
Expand Down Expand Up @@ -532,4 +532,4 @@ public static function change_language($language){
}
$db->close();
}
}
}

0 comments on commit 1f07ad8

Please sign in to comment.