Hello.
I would like to update user avatar with images displayed on userprofile. The problem is, that the picture field in user table is behaving in weird way.
Lets say i have 4 pictures in table mdl_files uploaded by an admin, those pictures are displayed in user profile. I want to choose between them and set them as avatar for particular user. The problem is, if i change picture(fileid) in mdl_user table to any other one, or even fake one nothing happens.
Why the picture field in user table is not working properly?