From ed1a53698a1d9f020c35d0cada0b9f4e990509a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 11 Oct 2007 09:51:29 +0000 Subject: #180897 by sun and dvessel: fix various XHTML validity issues in Drupal by closing unclosed tags, avoiding empty table containers, and so on --- modules/node/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node') 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 '

'. (isset($type->help) ? filter_xss_admin($type->help) : '') .'

'; + return (!empty($type->help) ? '

'. filter_xss_admin($type->help) .'

' : ''); } if ($arg[0] == 'node' && $arg[1] == 'add' && $arg[2]) { $type = node_get_types('type', str_replace('-', '_', $arg[2])); - return '

'. (isset($type->help) ? filter_xss_admin($type->help) : '') .'

'; + return (!empty($type->help) ? '

'. filter_xss_admin($type->help) .'

' : ''); } } -- cgit v1.2.3