mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 17:32:25 +02:00
- 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
This commit is contained in:
+1
-1
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user