summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index f8ebbffb7..6f436df02 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1663,6 +1663,11 @@ function theme_table($variables) {
}
}
+ // Add the 'empty' row message if available.
+ if (!count($rows) && $empty) {
+ $rows[] = array(array('data' => $empty, 'colspan' => count($header), 'class' => array('empty', 'message')));
+ }
+
// Format the table header:
if (count($header)) {
$ts = tablesort_init($header);
@@ -1680,11 +1685,6 @@ function theme_table($variables) {
$ts = array();
}
- // Add the 'empty' row message if available.
- if (!count($rows) && $empty) {
- $rows[] = array(array('data' => $empty, 'colspan' => count($header), 'class' => array('empty', 'message')));
- }
-
// Format the table rows:
if (count($rows)) {
$output .= "<tbody>\n";