From 1f07ad88f8a60804d03051181285d208ce6dd5fc Mon Sep 17 00:00:00 2001 From: ozboware <95859352+ozboware@users.noreply.github.com> Date: Wed, 19 Jul 2023 04:48:33 +0100 Subject: [PATCH] Update app.model.php fixed count error when checking for results --- SOURCE/httpd.private/app/models/app.model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SOURCE/httpd.private/app/models/app.model.php b/SOURCE/httpd.private/app/models/app.model.php index 2067194..38ff3c8 100644 --- a/SOURCE/httpd.private/app/models/app.model.php +++ b/SOURCE/httpd.private/app/models/app.model.php @@ -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( @@ -532,4 +532,4 @@ public static function change_language($language){ } $db->close(); } -} \ No newline at end of file +}