diff --git a/library/includes/ucp/register.php b/library/includes/ucp/register.php index b4f49444..58dda980 100644 --- a/library/includes/ucp/register.php +++ b/library/includes/ucp/register.php @@ -59,7 +59,7 @@ switch ($mode) // Ограничение по времени else if ($bb_cfg['new_user_reg_restricted']['enabled']) { - if (preg_match('/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/', $bb_cfg['new_user_reg_restricted']['time_start']) && preg_match('/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/', $bb_cfg['new_user_reg_restricted']['time_end'])) + if (!preg_match('/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/', $bb_cfg['new_user_reg_restricted']['time_start']) || !preg_match('/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/', $bb_cfg['new_user_reg_restricted']['time_end'])) { bb_die($lang['WRONG_INPUT']); }