Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.257 diff -u -F^f -r1.257 theme.inc --- includes/theme.inc 6 Sep 2005 20:32:53 -0000 1.257 +++ includes/theme.inc 7 Sep 2005 23:26:13 -0000 @@ -697,8 +697,7 @@ function theme_submenu($links) { * @return * An HTML string representing the table. */ -function theme_table($header, $rows, $attributes = NULL, $caption = NULL) { - +function theme_table($header, $rows, $attributes = array(), $caption = NULL) { $output = '\n"; if (isset($caption)) { @@ -708,15 +707,16 @@ function theme_table($header, $rows, $at // Format the table header: if (count($header)) { $ts = tablesort_init($header); - $output .= ' '; + $output .= ' '; foreach ($header as $cell) { $cell = tablesort_header($cell, $header, $ts); $output .= _theme_table_cell($cell, 1); } - $output .= " \n"; + $output .= " \n"; } // Format the table rows: + $output .= "\n"; if (count($rows)) { foreach ($rows as $number => $row) { $attributes = array(); @@ -756,7 +756,7 @@ function theme_table($header, $rows, $at } } - $output .= "\n"; + $output .= "\n"; return $output; }