mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
check if expires and sequence is set
This commit is contained in:
parent
0d19b2d52e
commit
65aa3eca27
|
@ -63,7 +63,7 @@ if(isset($_POST['categoryidform1'])) {
|
|||
} else {
|
||||
$categories = array();
|
||||
}
|
||||
$sequence = $_POST["sequence"];
|
||||
$sequence = isset($_POST["sequence"]) ? $_POST["sequence"] : "keep";
|
||||
$sequence = str_replace(',', '.', $_POST["sequence"]);
|
||||
if (!is_numeric($sequence)) {
|
||||
$sequence="keep";
|
||||
|
@ -180,7 +180,7 @@ if (($oldcomment = $document->getComment()) != $comment) {
|
|||
}
|
||||
|
||||
$expires = false;
|
||||
if ($_POST["expires"] != "false") {
|
||||
if (isset($_POST["expires"]) && $_POST["expires"] != "false") {
|
||||
if($_POST["expdate"]) {
|
||||
$tmp = explode('-', $_POST["expdate"]);
|
||||
$expires = mktime(0,0,0, $tmp[1], $tmp[0], $tmp[2]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user