This commit is contained in:
flash 2015-08-10 03:24:20 +02:00
parent d6703959d9
commit 7a2ffdd191
3 changed files with 13 additions and 3 deletions

View file

@ -39,7 +39,8 @@
"20150730",
"20150731",
"20150807",
"20150809"
"20150809",
"20150810"
]
@ -1675,6 +1676,15 @@
"change": "Fixed references to old urls variable."
}
],
"20150810": [
{
"type": "FIX",
"change": "Attempt to fix error while trying to get the old avatar name."
}
]
}

View file

@ -8,7 +8,7 @@
namespace Sakura;
// Define Sakura version
define('SAKURA_VERSION', '20150809');
define('SAKURA_VERSION', '20150810');
define('SAKURA_VLABEL', 'Eminence');
define('SAKURA_COLOUR', '#6C3082');
define('SAKURA_STABLE', false);

View file

@ -245,7 +245,7 @@ if(isset($_REQUEST['request-notifications']) && $_REQUEST['request-notifications
// Set path variables
$filepath = ROOT . Configuration::getConfig('user_uploads') .'/';
$filename = $filepath .'avatar_'. Session::$userId;
$currfile = !empty($_AVA = Users::getUser(Session::$userId)['userData']['userAvatar']) ? $_AVA : null;
$currfile = isset(Users::getUser(Session::$userId)['userData']['userAvatar']) && !empty($_AVA = Users::getUser(Session::$userId)['userData']['userAvatar']) ? $_AVA : null;
// Check if $_FILES is set
if(!isset($_FILES['avatar']) && empty($_FILES['avatar'])) {