Update domain_settings.php make sure checked is not empty.
This commit is contained in:
@@ -86,7 +86,7 @@ if (!class_exists('domain_settings')) {
|
|||||||
|
|
||||||
//build the delete array
|
//build the delete array
|
||||||
foreach ($records as $x => $record) {
|
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][$this->uuid_prefix.'uuid'] = $record['uuid'];
|
||||||
$array[$this->table][$x]['domain_uuid'] = $this->domain_uuid;
|
$array[$this->table][$x]['domain_uuid'] = $this->domain_uuid;
|
||||||
}
|
}
|
||||||
@@ -133,7 +133,7 @@ if (!class_exists('domain_settings')) {
|
|||||||
|
|
||||||
//get current toggle state
|
//get current toggle state
|
||||||
foreach ($records as $x => $record) {
|
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']."'";
|
$uuids[] = "'".$record['uuid']."'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -204,7 +204,7 @@ if (!class_exists('domain_settings')) {
|
|||||||
|
|
||||||
//get checked records
|
//get checked records
|
||||||
foreach($records as $record) {
|
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'];
|
$uuids[] = $record['uuid'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -388,4 +388,4 @@ if (!class_exists('domain_settings')) {
|
|||||||
} //class
|
} //class
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user