diff --git a/controller/registercontroller.php b/controller/registercontroller.php index 43450ef..255632d 100644 --- a/controller/registercontroller.php +++ b/controller/registercontroller.php @@ -85,7 +85,7 @@ class RegisterController extends Controller { ), 'error'); } - if ( !empty($this->config->getUsersForUserValue('settings', 'email', $email)) ) { + if ( $this->config->getUsersForUserValue('settings', 'email', $email) ) { return new TemplateResponse('', 'error', array( 'errors' => array(array( 'error' => $this->l10n->t('There is an existing user with this email'), diff --git a/templates/register.php b/templates/register.php index ef4b73c..96dfa53 100644 --- a/templates/register.php +++ b/templates/register.php @@ -25,7 +25,7 @@ if ($_['entered']): ?>
- +