mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
check if name and comment is set
This commit is contained in:
parent
8b69d859a4
commit
9575090fdd
|
@ -44,7 +44,13 @@ if ($action == "addgroup") {
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = $_POST["name"];
|
$name = $_POST["name"];
|
||||||
|
if(!$name) {
|
||||||
|
UI::exitError(getMLText("admin_tools"),getMLText("group_name_missing"));
|
||||||
|
}
|
||||||
$comment = $_POST["comment"];
|
$comment = $_POST["comment"];
|
||||||
|
if ($settings->_strictFormCheck && !$comment) {
|
||||||
|
UI::exitError(getMLText("admin_tools"),getMLText("group_comment_missing"));
|
||||||
|
}
|
||||||
|
|
||||||
if (is_object($dms->getGroupByName($name))) {
|
if (is_object($dms->getGroupByName($name))) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("group_exists"));
|
UI::exitError(getMLText("admin_tools"),getMLText("group_exists"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user