Menu

#589 Preferences in MySQL not updated

Database
closed
5
2021-08-13
2008-02-02
No

phpwiki 1.3.14.

pearDb.php

preferences being kept in mySQL database.

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!

Discussion

  • Marc-Etienne Vargenau

    • status: open --> closed
     
  • Marc-Etienne Vargenau

    Fixed in 1.6.0

     

Log in to post a comment.

MongoDB Logo MongoDB