Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.252 diff -u -F^f -r1.252 theme.inc --- includes/theme.inc 11 Aug 2005 12:57:41 -0000 1.252 +++ includes/theme.inc 12 Aug 2005 21:37:42 -0000 @@ -695,22 +695,22 @@ function theme_submenu($links) { * @return * An HTML string representing the table. */ -function theme_table($header, $rows, $attributes = NULL) { - +function theme_table($header, $rows, $attributes = array()) { $output = '\n"; // 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(); @@ -750,7 +750,7 @@ function theme_table($header, $rows, $at } } - $output .= "\n"; + $output .= "\n"; return $output; }