Bridges [Class]: Updates for PHP 8.1

This commit is contained in:
fusionate 2023-05-19 23:48:01 +00:00
parent 6311514ff6
commit 61bc6c2b5b
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ if (!class_exists('bridges')) {
//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'] = $_SESSION['domain_uuid'];
}
@ -132,7 +132,7 @@ if (!class_exists('bridges')) {
//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']."'";
}
}
@ -206,7 +206,7 @@ if (!class_exists('bridges')) {
//get checked records
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']."'";
}
}