mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
- check if expiritation is set before doing any action
This commit is contained in:
parent
d9f83a155d
commit
acaaac7b69
|
@ -168,6 +168,7 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["si
|
||||||
|
|
||||||
$expires = ($_POST["expires"] == "true") ? mktime(0,0,0, $_POST["expmonth"], $_POST["expday"], $_POST["expyear"]) : false;
|
$expires = ($_POST["expires"] == "true") ? mktime(0,0,0, $_POST["expmonth"], $_POST["expday"], $_POST["expyear"]) : false;
|
||||||
|
|
||||||
|
if ($expires) {
|
||||||
if($document->setExpires($expires)) {
|
if($document->setExpires($expires)) {
|
||||||
$document->getNotifyList();
|
$document->getNotifyList();
|
||||||
if($notifier) {
|
if($notifier) {
|
||||||
|
@ -194,6 +195,7 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["si
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user