check if comment is set

This commit is contained in:
Uwe Steinmann 2021-05-27 19:51:50 +02:00
parent 730bcedc30
commit 8b69d859a4

View File

@ -64,6 +64,9 @@ if (!is_object($version)) {
} }
$comment = $_POST["comment"]; $comment = $_POST["comment"];
if ($settings->_strictFormCheck && !$comment) {
UI::exitError(getMLText("admin_tools"),getMLText("version_comment_missing"));
}
if (($oldcomment = $version->getComment()) != $comment) { if (($oldcomment = $version->getComment()) != $comment) {
if($version->setComment($comment)) { if($version->setComment($comment)) {