Minor improvements (#915)

This commit is contained in:
Roman Kelesidis 2023-09-25 23:01:04 +07:00 committed by GitHub
commit 7ff2437186
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -97,7 +97,7 @@ function download_select($select_name, $group_id = 0)
*/
function category_select($select_name, $group_id = 0)
{
global $types_category, $modes_category;
global $types_category, $modes_category, $lang;
$category_type = null;
$sql = 'SELECT group_id, cat_id FROM ' . BB_EXTENSION_GROUPS;
@ -121,7 +121,7 @@ function category_select($select_name, $group_id = 0)
}
$types = [NONE_CAT];
$modes = ['none'];
$modes = [$lang['NONE']];
for ($i = 0, $iMax = count($types_category); $i < $iMax; $i++) {
$types[] = $types_category[$i];