User profile> update
h2lsoft opened this issue · comments
H2LSOFT commented
/plugins/_user-profile/trt_avatar.inc.php
if(!empty($AvatarTmp))
{
$avatar_image = '/library/media/images/avatar/'.$AvatarTmp;
$f = array();
$f['AvatarTmpImage'] = "";
$f['Avatar'] = $avatar_image;
$nuts->dbUpdate('NutsUser', $f, "ID={$_SESSION['NutsUserID']}", array());
}