diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-10-11 09:51:29 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-10-11 09:51:29 +0000 |
commit | ed1a53698a1d9f020c35d0cada0b9f4e990509a7 (patch) | |
tree | a8d5361e47e149af510d6b0a9f248e136628c606 /modules/node | |
parent | ba3c558f0de6a04810f55edd1c0b753223551ab5 (diff) | |
download | brdo-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/node')
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index b495a36ab..71fb9a5f0 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -58,12 +58,12 @@ function node_help($path, $arg) { case 'node/%/edit': $node = node_load($arg[1]); $type = node_get_types('type', $node->type); - return '<p>'. (isset($type->help) ? filter_xss_admin($type->help) : '') .'</p>'; + return (!empty($type->help) ? '<p>'. filter_xss_admin($type->help) .'</p>' : ''); } if ($arg[0] == 'node' && $arg[1] == 'add' && $arg[2]) { $type = node_get_types('type', str_replace('-', '_', $arg[2])); - return '<p>'. (isset($type->help) ? filter_xss_admin($type->help) : '') .'</p>'; + return (!empty($type->help) ? '<p>'. filter_xss_admin($type->help) .'</p>' : ''); } } |