mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 00:15:34 +00:00
- check for empty category name
This commit is contained in:
parent
bbcfb77f5b
commit
dfbc974ee9
|
@ -33,7 +33,10 @@ $action = $_GET["action"];
|
|||
//Neue Kategorie anlegen -----------------------------------------------------------------------------
|
||||
if ($action == "addcategory") {
|
||||
|
||||
$name = $_GET["name"];
|
||||
$name = trim($_GET["name"]);
|
||||
if($name == '') {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("category_noname"));
|
||||
}
|
||||
if (is_object($dms->getDocumentCategoryByName($name))) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("category_exists"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user