diff --git a/main/chat/chat_message.php b/main/chat/chat_message.php index 834fdefa8b..a1d7c209a5 100755 --- a/main/chat/chat_message.php +++ b/main/chat/chat_message.php @@ -215,21 +215,15 @@ if (!empty($course) && !empty($_user['user_id'])) { $fp = fopen($chat_path.$basename_chat.'.log.html', 'a'); // view user picture - $user_image = UserManager::get_user_picture_path_by_id($user_id, 'web', false, true); - $user_photo = $user_image['dir'].'medium_'.$user_image['file']; - $file_photo = ''; + $userImage = UserManager::get_user_picture_path_by_id($user_id, 'web', false, true); + $userPhoto = $userImage['dir'].'medium_'.$userImage['file']; + $filePhoto = ''; if ($isMaster) { - - // $photo = ''; - fputs($fp, '
'."\n"); - //fputs($fp, '['.$timeNow.']'.$file_photo.' '.api_get_person_name($firstname, $lastname).' : '.$message.'