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