Correct check whether the e-mail field was filled in Special:Userlogin/signup
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 8 Feb 2013 13:07:40 +0000 (14:07 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 8 Feb 2013 13:07:40 +0000 (14:07 +0100)
commitf0c82844d2702d3e0b908e36b424499b70091c3b
treede66ed90ffe075618ae3bd4ce1f010e1677e3aee
parent981f350b8f0873e69c6ee6a24425fdbd1d59b023
Correct check whether the e-mail field was filled in Special:Userlogin/signup

Use a strict comparison with '' instead of empty(), otherwise this allows user
to give "0" as an e-mail address.

Also use strval() if in any case null or something like that would be passed.

Change-Id: Ide7d35c52a04d05b43ae9fd37f7586bb4a67d4ed
includes/specials/SpecialUserlogin.php