|
@@ -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
|
|
|
}
|
|
|
|
|
|
-?>
|
|
|
+?>
|