Skip to content

Commit 1f07ad8

Browse files
authored
Update app.model.php
fixed count error when checking for results
1 parent 5840052 commit 1f07ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SOURCE/httpd.private/app/models/app.model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public static function checkCloudFlare(){
380380
return 0;
381381
}else{
382382
$name_check = 0;
383-
for($i = 0; $i < count($d); $i++){
383+
for($i = 0; $i < count($d['result']); $i++){
384384
if($d['result'][$i]['name'] == $dns_name && $d['result'][$i]['type'] == 'A'){
385385
$newurl = 'https://api.cloudflare.com/client/v4/zones/'.$zone_id.'/dns_records/'.$d['result'][$i]['id'];
386386
$data = array(
@@ -532,4 +532,4 @@ public static function change_language($language){
532532
}
533533
$db->close();
534534
}
535-
}
535+
}

0 commit comments

Comments
 (0)