From b9a207c51da89a880ef93c2d7ed485bdfe1ed515 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 17 Feb 2020 17:54:36 -0700 Subject: [PATCH] Domains Class: Use unique variable name for array id in delete() method. --- resources/classes/domains.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/classes/domains.php b/resources/classes/domains.php index 766458db0f..5959a155b2 100644 --- a/resources/classes/domains.php +++ b/resources/classes/domains.php @@ -92,7 +92,7 @@ if (!class_exists('domains')) { //delete multiple records if (is_array($records) && @sizeof($records) != 0) { //build the delete array - $x = 0; + $d = 0; foreach ($records as $record) { //add to the array if ($record['checked'] == 'true' && is_uuid($record['uuid'])) { @@ -268,11 +268,11 @@ if (!class_exists('domains')) { unset($_SESSION['switch']); //remove the domain and save to transactions - $domain_array['domains'][$x]['domain_uuid'] = $record['uuid']; - } + $domain_array['domains'][$d]['domain_uuid'] = $id; - //increment the id - $x++; + //increment the id + $d++; + } } //delete the checked rows