? .svn
? cck_module_6.x-1.3-no-content.patch
Index: cck_blocks.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_blocks/cck_blocks.module,v
retrieving revision 1.2.2.13
diff -u -p -r1.2.2.13 cck_blocks.module
--- cck_blocks.module	19 Mar 2010 08:37:50 -0000	1.2.2.13
+++ cck_blocks.module	13 Jan 2011 12:39:56 -0000
@@ -116,14 +116,17 @@ function cck_blocks_block($op = 'list', 
           }
         }
 
-        /* Use the label of the field as the block's title. Only visible,
-         * if the user did not enter a custom title for the block as $block->subject
-         *  is replaced by $block->title (if set) in block_list().
-         */
-        $block['subject'] = t($fields[$delta]['widget']['label']);
-
-        // Set the field's data as the content of the block
-        $block['content'] = drupal_render($cck_field_data);
+        $block_content = drupal_render($cck_field_data);
+        if (trim($block_content) != '') {
+          /* Use the label of the field as the block's title. Only visible,
+           * if the user did not enter a custom title for the block as $block->subject
+           *  is replaced by $block->title (if set) in block_list().
+           */
+          $block['subject'] = t($fields[$delta]['widget']['label']);
+
+          // Set the field's data as the content of the block
+          $block['content'] = $block_content;
+        }
       }
     }
   }
@@ -175,4 +178,4 @@ function cck_blocks_field_settings_submi
   $field_name = $form['#field']['field_name'];
   $global_value = $form_state['values']['global_cck_blocks_settings'];
   variable_set('cck_blocks_' . $field_name . '_block_availability', $global_value);
-}
\ No newline at end of file
+}
