fix logic introduced in addNewAccountInternal
authorS Page <spage@wikimedia.org>
Fri, 8 Feb 2013 07:46:27 +0000 (23:46 -0800)
committerS Page <spage@wikimedia.org>
Fri, 8 Feb 2013 07:46:27 +0000 (23:46 -0800)
commit3f1fd4328b4ffc10579570052b4fb0557058de0e
tree0925aeb1f61e053fe14e3a8797de71c2b932c75d
parenta4fcb5914034ecee55b03f4e9560951f9ef58768
fix logic introduced in addNewAccountInternal

Jenkins' PHP codesniffer complains about the whitespace at line 318.
I'm pretty sure gerrit 17952 (commit 69ea4400) introduced bad logic.
Part of the if statement boils down to
    userExists( userName ||  authenticate( userName, password) )
if userName is falsy then it calls userExists on the boolean return
value of authenticate().  I think this change puts it back to the way it
was.

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