Database [Class]: Update for PHP 8.1
This commit is contained in:
parent
251feddff8
commit
6119f7de7d
|
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue