} elseif (isFormSent('edit')) {
// Ok, change the account...
$updateUser = FALSE; $add = '';
- if ((!isPostRequestElementSet('pass1')) && (!isPostRequestElementSet('pass2'))) {
+ if ((!isPostRequestElementSet('password1')) && (!isPostRequestElementSet('password2'))) {
// Don't change the password
$updateUser = TRUE;
- } elseif ((postRequestElement('pass1') == postRequestElement('pass2'))) {
+ } elseif ((postRequestElement('password1') == postRequestElement('password2'))) {
// Change the password
$updateUser = TRUE;
- $add = ",`password`='" . generateHash(postRequestElement('pass1')) . "'";
+ $add = ",`password`='" . generateHash(postRequestElement('password1')) . "'";
}
if ($updateUser === TRUE) {