diff --git a/op/op.EditDocument.php b/op/op.EditDocument.php index bcad9e769..d77e91e9d 100644 --- a/op/op.EditDocument.php +++ b/op/op.EditDocument.php @@ -51,9 +51,9 @@ if($document->isLocked()) { } } -$name = $_POST["name"]; -$comment = $_POST["comment"]; -$keywords = $_POST["keywords"]; +$name = isset($_POST['name']) ? $_POST["name"] : ""; +$comment = isset($_POST['comment']) ? $_POST["comment"] : ""; +$keywords = isset($_POST["keywords"]) ? $_POST["keywords"] : ""; if(isset($_POST['categoryidform1'])) { $categories = explode(',', preg_replace('/[^0-9,]+/', '', $_POST["categoryidform1"])); } elseif(isset($_POST["categories"])) {