phpwiki 1.3.14.
pearDb.php
If a user's current preferences == ""
if($prefs_blob != "" ){
...
}
{
insert new row
};
Then pearDb attempts to add another row to the database. It should get a 'Unique' failure but unfortunately it gets the userid and the preferences reversed so it inserts a row with the username set to the preferences and vise-versa.
I can probably fix this myself if necessary but it would be ugly as I have never written php before!
Fixed in 1.6.0