From 5971f1e645f96f25fca2342f4de7b0287657f018 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 15 Sep 2005 20:58:17 +0000 Subject: [PATCH] - Patch #28777 by Neil: use and in theme_table(). --- includes/theme.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/theme.inc b/includes/theme.inc index 7a7e7e66f94..47c2ff29f7d 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -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, $attributes = NULL, $caption = NULL) { // 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, $attributes = NULL, $caption = NULL) { } } - $output .= "\n"; + $output .= "\n"; return $output; }