From 5816c35828ffe313188f07f6dc11eb4cc96a0efd Mon Sep 17 00:00:00 2001 From: pricey1981 Date: Fri, 4 Jul 2014 08:34:33 +0100 Subject: [PATCH] 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 --- usersettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usersettings.php b/usersettings.php index ae5bbf667..9ee606015 100644 --- a/usersettings.php +++ b/usersettings.php @@ -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'])) {