diff --git a/editing.inc.php b/editing.inc.php index bae3ee1e..61413256 100644 --- a/editing.inc.php +++ b/editing.inc.php @@ -54,6 +54,8 @@ function process_input($name, $field) { return false; //! report errors, also empty $_POST (too big POST data, not only FILES) } return "_binary'" . (is_string($file) ? $mysql->escape_string($file) : "") . "'"; + } elseif ($field["type"] == "timestamp" && $value == "CURRENT_TIMESTAMP") { + return $value; } else { return "'" . $mysql->escape_string($value) . "'"; }