summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index d4a412751..267240b16 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -611,7 +611,7 @@ function theme_links($links, $attributes = array('class' => 'links')) {
// Pass in $link as $options, they share the same keys.
$output .= l($link['title'], $link['href'], $link);
}
- else if ($link['title']) {
+ else if (!empty($link['title'])) {
// Some links are actually not links, but we wrap these in <span> for adding title and class attributes
if (empty($link['html'])) {
$link['title'] = check_plain($link['title']);
@@ -810,6 +810,9 @@ function theme_table($header, $rows, $attributes = array(), $caption = NULL) {
}
$output .= " </tr></thead>\n";
}
+ else {
+ $ts = array();
+ }
// Format the table rows:
$output .= "<tbody>\n";