1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Update usersettings.php

the '-upload-' prefix is not being added to user picture, but it is being saved in the upload folder. This means the picture is not displaying correctly
This commit is contained in:
pricey1981 2014-07-04 08:34:33 +01:00
parent de3cbe913d
commit 5816c35828

View File

@ -325,7 +325,7 @@ if (isset($_POST['updatesettings']))
elseif ($upload['name'] && ($upload['index'] == 'photo') && $pref['photo_upload'])
{
// photograph uploaded
$_POST['user_sess'] = $upload['name'];
$_POST['user_sess'] = '-upload-'.$upload['name'];
}
elseif (isset($upload['error']) && isset($upload['message']))
{