From 52c0c18cad2ef3c67a9782c60af4017429299b2a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 29 Jan 2006 08:01:55 +0000 Subject: - Patch #46622 by Neil: more forgiving hook_user('view'). --- modules/user/user.module | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/user') diff --git a/modules/user/user.module b/modules/user/user.module index 190e3abf5..81723ce9a 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -628,10 +628,15 @@ function theme_user_profile($account, $fields) { $output = "
\n"; $output .= theme('user_picture', $account); foreach ($fields as $category => $items) { - $output .= "

$category

\n"; + if (strlen($category) > 0) { + $output .= '

'. $category ."

\n"; + } $output .= '
'; foreach ($items as $item) { - $output .= sprintf('
%s:
%s
', $item['class'], $item['title'], $item['class'], $item['value']); + if (isset($item['title'])) { + $output .= '
'. $item['title'] .':
'; + } + $output .= '
'. $item['value'] .'
'; } $output .= '
'; } -- cgit v1.2.3