Minor improvements (#1467)

* Minor improvements

* Update CHANGELOG.md

* Update change_user_rank.php
This commit is contained in:
Roman Kelesidis 2024-05-05 09:51:16 +07:00 committed by GitHub
commit 3c297fce24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 6 deletions

View file

@ -322,7 +322,7 @@ if ($mode) {
// Create a category in the DB
//
if (!$new_cat_title = trim($_POST['categoryname'])) {
bb_die('Category name is empty');
bb_die($lang['CATEGORY_NAME_EMPTY']);
}
check_name_dup('cat', $new_cat_title);
@ -370,7 +370,7 @@ if ($mode) {
// Modify a category in the DB
//
if (!$new_cat_title = trim($_POST['cat_title'])) {
bb_die('Category name is empty');
bb_die($lang['CATEGORY_NAME_EMPTY']);
}
$cat_id = (int)$_POST[POST_CAT_URL];