aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-10-18 22:29:21 +0000
committerplegall <plg@piwigo.org>2005-10-18 22:29:21 +0000
commit4b4e8a4663301b404ca6bb8f92ec1cfbeb7507a9 (patch)
tree3b09b4861e7d068f2848be079169c772346b3b70 /profile.php
parent0aa1bcc73ceb24d91d5483171af994a05d2e60b0 (diff)
- bug 172 fixed: crash when changing password with an external users
table. The same kind of correction was also made in picture.php and register.php. git-svn-id: http://piwigo.org/svn/trunk@902 68402e56-0260-453c-a942-63ccdbb3a9ee
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'].'\'
;';