From 8508122da93bb086cb02cc3fd5ac6c7c3c234f74 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 11 Mar 2023 16:33:32 +0700 Subject: [PATCH] Various bug fixes described on the forum https://torrentpier.com/forum/threads/zapreschennye-imena.41785/ --- admin/admin_disallow.php | 2 +- library/includes/functions_selects.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/admin_disallow.php b/admin/admin_disallow.php index 6fe2ef3b..fdc1f23d 100644 --- a/admin/admin_disallow.php +++ b/admin/admin_disallow.php @@ -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']; } diff --git a/library/includes/functions_selects.php b/library/includes/functions_selects.php index e6fb9cec..5635cfbf 100644 --- a/library/includes/functions_selects.php +++ b/library/includes/functions_selects.php @@ -32,7 +32,7 @@ function tz_select ($default, $select_name = 'timezone') if (!isset($default)) { - $default == $sys_timezone; + $default = $sys_timezone; } $tz_select = '