Jelajahi Sumber

Minor - do not show an empty div.

Julio Montoya 11 tahun lalu
induk
melakukan
6c43515f0d
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  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>';
                                     <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));
+        }
     }
     }
 
 
     /**
     /**