? panels_tabs-208832.patch
Index: panels_tabs.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels_tabs/panels_tabs.module,v
retrieving revision 1.1.2.13.2.1
diff -u -p -r1.1.2.13.2.1 panels_tabs.module
--- panels_tabs.module	13 May 2009 20:30:34 -0000	1.1.2.13.2.1
+++ panels_tabs.module	25 May 2009 20:10:54 -0000
@@ -56,16 +56,18 @@ function theme_panels_tabs_style_render_
   foreach ($panes as $pane_id => $content) {
     // Remove the title from the content. We don't want titles in both the tab
     // and the content associated with the tab.
-    $content_without_title = drupal_clone($content);
-    unset($content_without_title->title);
-
-    $tabs[$id][$pane_id] = array(
-      '#type' => 'tabpage',
-      '#title' => $content->title,
-      '#content' => theme('panels_pane', $content_without_title, $display->content[$pane_id], $display),
-      '#weight' => $index,
-    );
-    $index++;
+    if ($content->content) {
+      $content_without_title = drupal_clone($content);
+      unset($content_without_title->title);
+
+      $tabs[$id][$pane_id] = array(
+        '#type' => 'tabpage',
+        '#title' => $content->title,
+        '#content' => theme('panels_pane', $content_without_title, $display->content[$pane_id], $display),
+        '#weight' => $index,
+      );
+      $index++;
+    }
   }
   $output = tabs_render($tabs);
 
