summaryrefslogtreecommitdiff
path: root/modules/trigger
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-11 09:51:29 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-11 09:51:29 +0000
commited1a53698a1d9f020c35d0cada0b9f4e990509a7 (patch)
treea8d5361e47e149af510d6b0a9f248e136628c606 /modules/trigger
parentba3c558f0de6a04810f55edd1c0b753223551ab5 (diff)
downloadbrdo-ed1a53698a1d9f020c35d0cada0b9f4e990509a7.tar.gz
brdo-ed1a53698a1d9f020c35d0cada0b9f4e990509a7.tar.bz2
#180897 by sun and dvessel: fix various XHTML validity issues in Drupal by closing unclosed tags, avoiding empty table containers, and so on
Diffstat (limited to 'modules/trigger')
-rw-r--r--modules/trigger/trigger.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module
index dfb2b89cc..8140e442a 100644
--- a/modules/trigger/trigger.module
+++ b/modules/trigger/trigger.module
@@ -333,7 +333,12 @@ function theme_trigger_display($element) {
}
}
- $output = theme('table', $header, $rows) . drupal_render($element);
+ if (count($rows)) {
+ $output = theme('table', $header, $rows) . drupal_render($element);
+ }
+ else {
+ $output = drupal_render($element);
+ }
return $output;
}