diff --git a/main/social/profile.php b/main/social/profile.php index 1d027f592f..4e9b5afc21 100644 --- a/main/social/profile.php +++ b/main/social/profile.php @@ -227,7 +227,7 @@ if (is_array($personal_course_list)) { } $social_left_content = SocialManager::show_social_menu('shared_profile', null, $user_id, $show_full_profile); -$social_right_content = '
'; +$social_right_content = '
'; if (!empty($user_info['firstname']) || !empty($user_info['lastname'])) { $social_right_content .= '

'.api_get_person_name($user_info['firstname'], $user_info['lastname']).'

'; @@ -341,16 +341,15 @@ $social_right_content .= '
'; // close div tag rounded if ($show_full_profile) { - $social_right_content .= '
'; - $list_path_friends= $list_path_normal_friends = $list_path_parents = array(); + $social_right_content .= '
'; + $list_path_normal_friends = $list_path_parents = array(); //SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT $friends = SocialManager::get_friends($user_id, USER_RELATION_TYPE_FRIEND); $friend_html = ''; $number_of_images = 6; - $number_friends = 0; - $list_friends_id = array(); + $number_friends = 0; $number_friends = count($friends); if ($number_friends != 0) { @@ -380,8 +379,7 @@ if ($show_full_profile) { if (isset($friends[$k])) { $friend = $friends[$k]; $name_user = api_get_person_name($friend['firstName'], $friend['lastName']); - $user_info = api_get_user_info($friend['friend_user_id'], true); - + $user_info = api_get_user_info($friend['friend_user_id'], true); if ($user_info['user_is_online']) { $status_icon = Display::div('', array('class' => 'online_user')); @@ -394,12 +392,7 @@ if ($show_full_profile) { // the height = 92 must be the sqme in the image_friend_network span style in default.css $friends_profile = SocialManager::get_picture_user($friend['friend_user_id'], $friend['image'], 92, USER_IMAGE_SIZE_MEDIUM , 'width="85" height="90" '); - - - $friend_html.= ''; - - - + $friend_html.= ''; $friend_html.= ''; $friend_html.= ''; $friend_html.= '
'.$name_user.'
'; @@ -465,7 +458,7 @@ if ($show_full_profile) { } if (count($grid_my_groups) > 0) { - $social_right_content .= '
'; + $social_right_content .= '
'; $count_groups = 0; if (count($results) == 1 ) { $count_groups = count($results); @@ -496,7 +489,7 @@ if ($show_full_profile) { // COURSES LIST if ( is_array($list) ) { - $social_right_content .= '
'; + $social_right_content .= '
'; $social_right_content .= '

'.api_ucfirst(get_lang('MyCourses')).'

'; $social_right_content .= ''; //rounded } - $social_right_content .= '
'; // close social-box-main1 + $social_right_content .= '
'; // + } +$social_right_content .= '
'; // $tpl = new Template(get_lang('Social'));