From dc466167a47efac0061b2b3d7c7c02a715a0abe2 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 18 Oct 2012 13:06:46 +0200 Subject: [PATCH] Fixing image block when social net is off --- main/inc/lib/userportal.lib.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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; }