Changeset 902 for trunk/picture.php


Ignore:
Timestamp:
Oct 19, 2005, 12:29:21 AM (19 years ago)
Author:
plg
Message:
  • 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r891 r902  
    346346    $query = 'SELECT COUNT(*) AS user_exists';
    347347    $query.= ' FROM '.USERS_TABLE;
    348     $query.= " WHERE username = '".$author."'";
     348    $query.= ' WHERE '.$conf['user_fields']['username']." = '".$author."'";
    349349    $query.= ';';
    350350    $row = mysql_fetch_array( pwg_query( $query ) );
Note: See TracChangeset for help on using the changeset viewer.