mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
check if expires is set in POST request without php warning
This commit is contained in:
parent
982d088339
commit
0e631bd09e
|
@ -77,7 +77,7 @@ if (!is_numeric($sequence)) {
|
|||
}
|
||||
|
||||
$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]);
|
||||
|
|
|
@ -218,7 +218,7 @@ if ($_FILES['userfile']['error'] == 0) {
|
|||
}
|
||||
|
||||
$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