diff --git a/mod/settings.php b/mod/settings.php index c8fcf39146..0b0113e9b0 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -317,8 +317,8 @@ function settings_post(&$a) { if((x($_POST,'password')) || (x($_POST,'confirm'))) { $newpass = $_POST['password']; - $confirm = $_POST['confirm']; - $oldpass = hash('whirlpool', $_POST['opassword']); + $confirm = $_POST['confirm']; + $oldpass = hash('whirlpool', $_POST['opassword']); $err = false; if($newpass != $confirm ) {