|
@@ -17,7 +17,7 @@
|
|
|
|
|
|
The Initial Developer of the Original Code is
|
|
|
Mark J Crane <[email protected]>
|
|
|
- Portions created by the Initial Developer are Copyright (C) 2020
|
|
|
+ Portions created by the Initial Developer are Copyright (C) 2020-2023
|
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
Contributor(s):
|
|
@@ -76,7 +76,7 @@ if (!class_exists('databases')) {
|
|
|
|
|
|
//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'];
|
|
|
}
|
|
|
}
|
|
@@ -122,7 +122,7 @@ if (!class_exists('databases')) {
|
|
|
|
|
|
//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']."'";
|
|
|
}
|
|
|
}
|
|
@@ -132,7 +132,7 @@ if (!class_exists('databases')) {
|
|
|
$sql = "select * from v_".$this->table." ";
|
|
|
$sql .= "where ".$this->uuid_prefix."uuid in (".implode(', ', $uuids).") ";
|
|
|
$database = new database;
|
|
|
- $rows = $database->select($sql, $parameters, 'all');
|
|
|
+ $rows = $database->select($sql, $parameters ?? null, 'all');
|
|
|
if (is_array($rows) && @sizeof($rows) != 0) {
|
|
|
foreach ($rows as $x => $row) {
|
|
|
|