Browse Source

Minor - do not show an empty div.

Julio Montoya 11 years ago
parent
commit
6c43515f0d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      main/inc/lib/page.lib.php

+ 4 - 1
main/inc/lib/page.lib.php

@@ -58,7 +58,10 @@ class PageController
                                     <img title="'.get_lang('EditProfile').'" src="'.$img_array['file'].'"></a>';
             }
         }
-        $this->show_right_block(null, null, 'user_image_block', array('content' => $profile_content));
+
+        if (!empty($profile_content)) {
+            $this->show_right_block(null, null, 'user_image_block', array('content' => $profile_content));
+        }
     }
 
     /**