aboutsummaryrefslogtreecommitdiffstats
path: root/picture.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 /picture.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 '')
-rw-r--r--picture.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index bc1ecdea4..46d97b948 100644
--- a/picture.php
+++ b/picture.php
@@ -345,7 +345,7 @@ if ( isset( $_POST['content'] ) && !empty($_POST['content']) )
{
$query = 'SELECT COUNT(*) AS user_exists';
$query.= ' FROM '.USERS_TABLE;
- $query.= " WHERE username = '".$author."'";
+ $query.= ' WHERE '.$conf['user_fields']['username']." = '".$author."'";
$query.= ';';
$row = mysql_fetch_array( pwg_query( $query ) );
if ( $row['user_exists'] == 1 )