User class bugfix

refs 
This commit is contained in:
Marius Hein 2013-11-28 17:31:18 +01:00
parent 263f09a94c
commit f7324e73a3

@ -277,7 +277,7 @@ class User
public function setEmail($mail)
{
if (filter_var($mail, FILTER_VALIDATE_EMAIL)) {
$this->mail = $mail;
$this->email = $mail;
} else {
throw new InvalidArgumentException("Invalid mail given for user $this->username: $mail");
}