From 3b7020be212d414355fca365d63cce4afe37249c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 5 Jun 2023 17:46:27 -0600 Subject: [PATCH] Update domain_settings.php make sure checked is not empty. --- .../domain_settings/resources/classes/domain_settings.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/domain_settings/resources/classes/domain_settings.php b/core/domain_settings/resources/classes/domain_settings.php index f7ef176769..afe51d3a10 100644 --- a/core/domain_settings/resources/classes/domain_settings.php +++ b/core/domain_settings/resources/classes/domain_settings.php @@ -86,7 +86,7 @@ if (!class_exists('domain_settings')) { //build the delete array foreach ($records as $x => $record) { - if ($record['checked'] == 'true' && is_uuid($record['uuid'])) { + if (!empty($record['checked']) && $record['checked'] == 'true' && is_uuid($record['uuid'])) { $array[$this->table][$x][$this->uuid_prefix.'uuid'] = $record['uuid']; $array[$this->table][$x]['domain_uuid'] = $this->domain_uuid; } @@ -133,7 +133,7 @@ if (!class_exists('domain_settings')) { //get current toggle state foreach ($records as $x => $record) { - if ($record['checked'] == 'true' && is_uuid($record['uuid'])) { + if (!empty($record['checked']) && $record['checked'] == 'true' && is_uuid($record['uuid'])) { $uuids[] = "'".$record['uuid']."'"; } } @@ -204,7 +204,7 @@ if (!class_exists('domain_settings')) { //get checked records foreach($records as $record) { - if ($record['checked'] == 'true' && is_uuid($record['uuid'])) { + if (!empty($record['checked']) && $record['checked'] == 'true' && is_uuid($record['uuid'])) { $uuids[] = $record['uuid']; } } @@ -388,4 +388,4 @@ if (!class_exists('domain_settings')) { } //class } -?> \ No newline at end of file +?>