Merge pull request #3 from torrentpier/bugfix/various-bugfixes

Various bug fixes described on the forum
This commit is contained in:
Roman Kelesidis 2023-03-11 16:33:53 +07:00 committed by GitHub
commit fd398330d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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']);
}
if( !validate_username($disallowed_user) )
if( validate_username($disallowed_user) )
{
$message = $lang['DISALLOWED_ALREADY'];
}

View File

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