mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
prevent php warning if comment is not set
This commit is contained in:
parent
1c72478c3a
commit
d5a3486e02
|
@ -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"]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user