Fixes for installation phase, old lost call of FILTER_COMPILE_CONFIG() removed
[mailer.git] / inc / libs / admins_functions.php
index 6a1116e65e23958ab90059b480896ceacbeb6b47..4b3aa1bedfdd41bb87a2f8c4ffe84311d360758d 100644 (file)
@@ -181,7 +181,7 @@ function adminsChangeAdminAccount ($postData, $element = '') {
 
                        // Get admin's id
                        $adminId = getCurrentAdminId();
-                       $salt = substr(getAdminHash($adminId), 0, -40);
+                       $salt = substr(getAdminHash(getAdminLogin($adminId)), 0, -40);
 
                        // Rewrite cookie when it's own account
                        if ($adminId == $id) {