<h2><%=l(:label_my_page)%></h2>\r
\r
<div id="list-top">\r
- <% @blocks['top'].each do |b| %>\r
+ <% @blocks['top'].each do |b| \r
+ next unless MyController::BLOCKS.keys.include? b %>\r
<div class="mypage-box"> \r
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>\r
</div>\r
</div>\r
\r
<div id="list-left" class="splitcontentleft">\r
- <% @blocks['left'].each do |b| %>\r
+ <% @blocks['left'].each do |b| \r
+ next unless MyController::BLOCKS.keys.include? b %>\r
<div class="mypage-box"> \r
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>\r
</div>\r
</div>\r
\r
<div id="list-right" class="splitcontentright">\r
- <% @blocks['right'].each do |b| %>\r
+ <% @blocks['right'].each do |b| \r
+ next unless MyController::BLOCKS.keys.include? b %>\r
<div class="mypage-box"> \r
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>\r
</div>\r