1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Fixes #1748 - Forum avatar issue.

This commit is contained in:
Cameron
2017-01-08 08:53:36 -08:00
parent fa042102fd
commit 62a5ffa3a7

View File

@@ -3654,15 +3654,15 @@ class e_parser
$height = ($tp->thumbHeight !== 0) ? $tp->thumbHeight : ""; $height = ($tp->thumbHeight !== 0) ? $tp->thumbHeight : "";
$linkStart = ''; $linkStart = '';
$linkEnd = ''; $linkEnd = '';
if(!isset($userData['user_image']) && USERID) if($userData === null && USERID)
{ {
$userData = array(); $userData = array();
$userData['user_id'] = USERID; $userData['user_id'] = USERID;
$userData['user_image'] = USERIMAGE; $userData['user_image'] = USERIMAGE;
$userData['user_name'] = USERNAME; $userData['user_name'] = USERNAME;
} }
$image = (!empty($userData['user_image'])) ? varset($userData['user_image']) : null; $image = (!empty($userData['user_image'])) ? varset($userData['user_image']) : null;