Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeven Bansod <devenbansod.bits@gmail.com>2015-12-19 19:26:57 +0300
committerDeven Bansod <devenbansod.bits@gmail.com>2015-12-19 19:26:57 +0300
commit7c0a25c93774b1e491440b14f3116de1d3433bfb (patch)
tree4e639eca95716e2560085be086fbed709f6ceb21 /user_password.php
parenta93160128fdb7c159302d4cb904b78a6e5352f5d (diff)
Move the variable assignment inside the else-if block
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Diffstat (limited to 'user_password.php')
-rw-r--r--user_password.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/user_password.php b/user_password.php
index 33a52ea378..d172f9f691 100644
--- a/user_password.php
+++ b/user_password.php
@@ -177,9 +177,11 @@ function PMA_changePassword($password, $message, $change_password_message)
$value = 0;
}
$GLOBALS['dbi']->tryQuery('SET `old_passwords` = ' . $value . ';');
+
+ $sql_query = 'SET password = '
+ . (($password == '') ? '\'\'' : $hashing_function . '(\'***\')');
}
- $sql_query = 'SET password = '
- . (($password == '') ? '\'\'' : $hashing_function . '(\'***\')');
+
PMA_changePassUrlParamsAndSubmitQuery(
$username, $hostname, $password,
$sql_query, $hashing_function, $orig_auth_plugin