From 6d1ffea494a977c4fca39be7b5155c5fb310cdb8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 9 Nov 2002 20:12:03 +0000 Subject: - Added check to see whether $items is initiliazed. Thanks James. --- includes/theme.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index a8659ab5e..bde71d3c0 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -90,12 +90,14 @@ function theme_item_list($items = array(), $title = 0) { ** Return a formatted array of items. */ - if ($title) { + if (isset($title)) { $output .= "$title
"; } - foreach ($items as $item) { - $output .= "- $item
"; + if (isset($items)) { + foreach ($items as $item) { + $output .= "- $item
"; + } } return $output; -- cgit v1.2.3