PDA

View Full Version : Bug Report - Ghost users created during guest upload.


skidpics
July 19th, 2010, 07:21 PM
Chuck,

I have a new install of PP7..

When a guest uploads a picture, there is a new user created in the DB everytime. I just check, there were 262 blank users, I uploaded 1 image, 263.

Anyone ever reported these ghost users??

Chuck S
July 20th, 2010, 09:44 AM
In image-inc.php this line


$resultc = ppmysql_query("INSERT IGNORE INTO {$Globals['pp_db_prefix']}users (userid,lastphoto,lastdate) VALUES ($upuserid,0,0)", $link);


change to


if ( $upuserid > 0 )
{
$resultc = ppmysql_query("INSERT IGNORE INTO {$Globals['pp_db_prefix']}users (userid,lastphoto,lastdate) VALUES ($upuserid,0,0)", $link);
}