summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-24 20:08:54 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-24 20:08:54 +0000
commit5f36738a11bcca76e84fae45af1a915f664aaebf (patch)
treec885815bd4f06a9931608e20bd77be045c75bb7e /includes/theme.inc
parent350f2e5affe8d327d5c5d162345da578ff45150a (diff)
downloadbrdo-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.inc2
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>';