? theme_table.patch
Index: theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.626
diff -u -p -r1.626 theme.inc
--- theme.inc	11 Dec 2010 02:06:25 -0000	1.626
+++ theme.inc	19 Dec 2010 04:26:09 -0000
@@ -1613,13 +1613,13 @@ function theme_breadcrumb($variables) {
  *     rows.
  */
 function theme_table($variables) {
-  $header = $variables['header'];
-  $rows = $variables['rows'];
-  $attributes = $variables['attributes'];
-  $caption = $variables['caption'];
-  $colgroups = $variables['colgroups'];
-  $sticky = $variables['sticky'];
-  $empty = $variables['empty'];
+  $header = isset($variables['header']) ? $variables['header'] : array();
+  $rows = isset($variables['rows']) ? $variables['rows'] : array();
+  $attributes = isset($variables['attributes']) ? $variables['attributes'] : array();
+  $caption = isset($variables['caption']) ? $variables['caption'] : null;
+  $colgroups = isset($variables['colgroups']) ? $variables['colgroups'] : array();
+  $sticky = isset($variables['sticky']) ? $variables['sticky'] : array();
+  $empty = isset($variables['empty']) ? $variables['empty'] : null;
 
   // Add sticky headers, if applicable.
   if (count($header) && $sticky) {
