mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
check if comment is set
This commit is contained in:
parent
730bcedc30
commit
8b69d859a4
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user