Minor - removed useless conditions

skala
Yannick Warnier 13 years ago
parent f773c8d961
commit af11cffc2c
  1. 11
      main/social/profile.php

@ -433,11 +433,8 @@ if ($show_full_profile) {
} }
$friend_html.= '</div>'; $friend_html.= '</div>';
$social_right_content .= SocialManager::social_wrapper_div($friend_html, 5); $social_right_content .= SocialManager::social_wrapper_div($friend_html, 5);
}
// Extra information // Extra information
if ($show_full_profile) {
//-- Extra Data
$t_uf = Database :: get_main_table(TABLE_MAIN_USER_FIELD); $t_uf = Database :: get_main_table(TABLE_MAIN_USER_FIELD);
$t_ufo = Database :: get_main_table(TABLE_MAIN_USER_FIELD_OPTIONS); $t_ufo = Database :: get_main_table(TABLE_MAIN_USER_FIELD_OPTIONS);
$extra_user_data = UserManager::get_extra_user_data($user_id); $extra_user_data = UserManager::get_extra_user_data($user_id);
@ -506,11 +503,9 @@ if ($show_full_profile) {
$extra_information .= '</div>'; //social-profile-info $extra_information .= '</div>'; //social-profile-info
} }
// if there are information to show // if there are information to show
if (!empty($extra_information_value)) if (!empty($extra_information_value)) {
$social_right_content .= SocialManager::social_wrapper_div($extra_information, 9); $social_right_content .= SocialManager::social_wrapper_div($extra_information, 9);
} }
if ($show_full_profile) {
// MY GROUPS // MY GROUPS
$results = GroupPortalManager::get_groups_by_user($my_user_id, 0); $results = GroupPortalManager::get_groups_by_user($my_user_id, 0);

Loading…
Cancel
Save