mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
add checking for revision date
This commit is contained in:
parent
2eb19048ab
commit
789b5daaf8
|
@ -55,10 +55,12 @@ if (!is_object($content)) {
|
|||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
|
||||
}
|
||||
|
||||
if (isset($_POST["startdate"])) {
|
||||
$ts = null;
|
||||
if (!empty($_POST["startdate"])) {
|
||||
$ts = makeTsFromDate($_POST["startdate"]);
|
||||
} else {
|
||||
$ts = time();
|
||||
}
|
||||
if(!$ts) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_revision_date"));
|
||||
}
|
||||
$startdate = date('Y-m-d', $ts);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user