From 5f36738a11bcca76e84fae45af1a915f664aaebf Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 24 Nov 2005 20:08:54 +0000 Subject: - Patch #38279 by paddy_deburca: fixed theme_item_list() not to generate an empty tag when $items is empty. --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/theme.inc b/includes/theme.inc index c1bc54339..c7f585853 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -839,7 +839,7 @@ function theme_item_list($items = array(), $title = NULL, $type = 'ul') { $output .= '

'. $title .'

'; } - if (isset($items)) { + if (!empty($items)) { $output .= "<$type>"; foreach ($items as $item) { $output .= '
  • '. $item .'
  • '; -- cgit v1.2.3