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