Various bug fixes described on the forum

https://torrentpier.com/forum/threads/zapreschennye-imena.41785/
This commit is contained in:
Roman Kelesidis 2023-03-11 16:33:32 +07:00
parent 9fbe5d6e82
commit 8508122da9
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if (isset($_POST['add_name']))
{ {
bb_die($lang['FIELDS_EMPTY']); bb_die($lang['FIELDS_EMPTY']);
} }
if( !validate_username($disallowed_user) ) if( validate_username($disallowed_user) )
{ {
$message = $lang['DISALLOWED_ALREADY']; $message = $lang['DISALLOWED_ALREADY'];
} }

View File

@ -32,7 +32,7 @@ function tz_select ($default, $select_name = 'timezone')
if (!isset($default)) if (!isset($default))
{ {
$default == $sys_timezone; $default = $sys_timezone;
} }
$tz_select = '<select name="' . $select_name . '">'; $tz_select = '<select name="' . $select_name . '">';