From 11bd0dcd49860fef791317af71486935527978e0 Mon Sep 17 00:00:00 2001 From: Raphael Jackstadt Date: Sun, 31 May 2015 17:35:55 +0200 Subject: [PATCH] moved user_exsist_by_name out of the IF --- application/libraries/Aauth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index c762e07..c7006ce 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -602,10 +602,10 @@ class Aauth { $this->error($this->CI->lang->line('aauth_error_username_required')); $valid = FALSE; } - if ($this->user_exsist_by_name($name)) { - $this->error($this->CI->lang->line('aauth_error_username_exists')); - $valid = FALSE; - } + } + if ($this->user_exsist_by_name($name)) { + $this->error($this->CI->lang->line('aauth_error_username_exists')); + $valid = FALSE; } if ($this->user_exsist_by_email($email)) { $this->error($this->CI->lang->line('aauth_error_email_exists'));