From 65aa3eca2769ee42385766f75470c7873256bcc4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 18 Jun 2015 17:31:56 +0200 Subject: [PATCH] check if expires and sequence is set --- op/op.EditDocument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op/op.EditDocument.php b/op/op.EditDocument.php index 3fd1a3805..1d1d2ae67 100644 --- a/op/op.EditDocument.php +++ b/op/op.EditDocument.php @@ -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]);