diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-24 20:08:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-24 20:08:54 +0000 |
commit | 5f36738a11bcca76e84fae45af1a915f664aaebf (patch) | |
tree | c885815bd4f06a9931608e20bd77be045c75bb7e /includes/theme.inc | |
parent | 350f2e5affe8d327d5c5d162345da578ff45150a (diff) | |
download | brdo-5f36738a11bcca76e84fae45af1a915f664aaebf.tar.gz brdo-5f36738a11bcca76e84fae45af1a915f664aaebf.tar.bz2 |
- Patch #38279 by paddy_deburca: fixed theme_item_list() not to generate an empty <ul></ul> tag when $items is empty.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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 .= '<h3>'. $title .'</h3>'; } - if (isset($items)) { + if (!empty($items)) { $output .= "<$type>"; foreach ($items as $item) { $output .= '<li>'. $item .'</li>'; |