diff --git a/register.php b/register.php index 0a2d69db..6185f80a 100644 --- a/register.php +++ b/register.php @@ -17,8 +17,9 @@ include_once ADMIN_VIEWS_DIR . DS . 'header-unlogged.php'; - /** The form was submitted */ - if ($_POST) { +/** The form was submitted */ +if ($_POST) { + if (get_option('clients_can_register') == '1') { /** Validate the information from the posted form. */ /** Create the user if validation is correct. */ $new_client->setType('new_client'); @@ -70,6 +71,7 @@ exit; } } +} ?>
@@ -165,7 +167,8 @@

- + +