Closed (fixed)
Project:
User Import
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2009 at 06:19 UTC
Updated:
18 Apr 2009 at 16:30 UTC
Hi when I import new users, user_import doesn't insert values to profile_values table. The following conditional statement seems to be the problem
if (empty($exists) && $exists != '') {
db_query("INSERT INTO {profile_values} (fid,uid,value) VALUES(%d,%d,'%s')", $field->fid, $uid, $value);
}
The second condition ($exists != '') always contradicts the first condition ie. when the first condition is true, the second condition is always false hence the insert statement never get invoked.
Comments
Comment #1
robert castelo commentedThanks for spotting this one.
Fixed in latest version for Drupal 5 and 6.