diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index a8dca0371c..42c09496ac 100644 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -720,12 +720,11 @@ class IndexManager { $img_array = UserManager::get_picture_user(api_get_user_id(), $img_array['file'], 50, USER_IMAGE_SIZE_MEDIUM, ' width="90" height="90" '); if (api_get_setting('allow_social_tool') == 'true') { - if (!$no_image) { - $profile_content .=''; - } else { - $profile_content .=''; - } - } + $profile_content .=''; + } else { + $profile_content .=''; + } + $html = self::show_right_block(null, $profile_content, 'user_image_block', array('style' => 'text-align:center;')); return $html; }