summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/theme.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index fa3a646aa..2a91b08d8 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -672,7 +672,7 @@ function theme_table($header, $rows, $attributes = NULL) {
$output = '<table'. drupal_attributes($attributes) .">\n";
// Format the table header:
- if (is_array($header)) {
+ if (count($header)) {
$ts = tablesort_init($header);
$output .= ' <tr>';
foreach ($header as $cell) {
@@ -683,7 +683,7 @@ function theme_table($header, $rows, $attributes = NULL) {
}
// Format the table rows:
- if (is_array($rows)) {
+ if (count($rows)) {
foreach ($rows as $number => $row) {
$attributes = array();