Closed (fixed)
Project:
Buzzworthy
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Mar 2009 at 20:52 UTC
Updated:
16 Apr 2009 at 21:20 UTC
When no content fits the "buzzworthy" criteria, the module outputs an empty block instead of no block at all. Specifically, it's adding an empty item-list div, which makes Drupal think the block should be displayed.
<div id="block-buzzworthy-0" class="block block-buzzworthy region-odd odd region-count-1 count-1">
<h3 class="title">Buzzworthy</h3>
<div class="content">
<div class="item-list"></div> </div>
<div class="edit"><a href="/admin/build/block/configure/buzzworthy/0">[configure block]</a></div></div>
There probably needs to be a check to make sure there are items to be displayed before it's wrapped in an item-list div or sent to a list theming function (or both).
Comments
Comment #1
Robbie Sternenberg commentedFixed in 6.x-1.0-rc2