diff --git a/class.uFlex.php b/class.uFlex.php
index <HASH>..<HASH> 100644
--- a/class.uFlex.php
+++ b/class.uFlex.php
@@ -333,8 +333,10 @@
 			}

 			//Check for Email in database

 			if(isset($info['email']))

-				if($this->check_field('email',$info['email'],"This Email is Already in Use"))

-					return false;

+				if($info['email']!=$this->data['email']){

+					if($this->check_field('email',$info['email'],"This Email is Already in Use"))

+						return false;

+				}

 

 			//Check for errors

 			if($this->has_error()) return false;

@@ -1413,4 +1415,4 @@
 			$this->data = $this->opt['default_user'];

 		}

 	}

-?>
\ No newline at end of file
+?>
Prevent error on update when there is email field

This change prevents an error on update user data, when there is a form that allows to change the email. It checks if the email has changed, if yes, checks if it is in use.