diff --git a/op/op.UpdateDocument.php b/op/op.UpdateDocument.php index 293caf22b..cb6f6887a 100644 --- a/op/op.UpdateDocument.php +++ b/op/op.UpdateDocument.php @@ -49,7 +49,10 @@ if ($document->isLocked()) { else $document->setLocked(false); } -$comment = $_POST["comment"]; +if(isset($_POST["comment"])) + $comment = $_POST["comment"]; +else + $comment = ""; if ($_FILES['userfile']['error'] == 0) { if(!is_uploaded_file($_FILES["userfile"]["tmp_name"]))