Database [Class]: Update for PHP 8.1

This commit is contained in:
fusionate 2023-05-25 15:40:20 +00:00
parent 251feddff8
commit 6119f7de7d
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -2556,7 +2556,7 @@
$k != 'insert_date' &&
$k != 'update_user' &&
$k != 'update_date') {
if (strlen($v) == 0) {
if (!isset($v) || strlen($v) == 0) {
$sql .= "null, ";
}
elseif ($v === "now()") {
@ -2656,7 +2656,6 @@
} // foreach schema_array
} // foreach main array
//save the message
$this->message = $message;
//commit the atomic transaction
@ -2766,7 +2765,7 @@
exit;
}
}
return $this->message;
return $message;
} //save method
/**