prevent php warning if comment is not set

This commit is contained in:
Uwe Steinmann 2013-03-26 20:25:13 +01:00
parent 1c72478c3a
commit d5a3486e02

View File

@ -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"]))