check if $_POST["expires"] is set

This commit is contained in:
Uwe Steinmann 2013-03-13 18:44:42 +01:00
parent 719328b311
commit 9a72052744

View File

@ -76,7 +76,7 @@ if (!is_numeric($sequence)) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("invalid_sequence"));
}
$expires = ($_POST["expires"] == "true") ? mktime(0,0,0, intval($_POST["expmonth"]), intval($_POST["expday"]), intval($_POST["expyear"])) : false;
$expires = (isset($_POST["expires"]) && $_POST["expires"] == "true") ? mktime(0,0,0, intval($_POST["expmonth"]), intval($_POST["expday"]), intval($_POST["expyear"])) : false;
// Get the list of reviewers and approvers for this document.
$reviewers = array();