aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.php b/profile.php
index 170b14913..4a85467e6 100644
--- a/profile.php
+++ b/profile.php
@@ -77,7 +77,7 @@ if (isset($_POST['validate']))
// changing password requires old password
$query = '
-SELECT password
+SELECT '.$conf['user_fields']['password'].' AS password
FROM '.USERS_TABLE.'
WHERE '.$conf['user_fields']['id'].' = \''.$userdata['id'].'\'
;';