diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-11-09 20:12:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-11-09 20:12:03 +0000 |
commit | 6d1ffea494a977c4fca39be7b5155c5fb310cdb8 (patch) | |
tree | 9aa2a67e4237153a3c441cb76686b67d09dee299 | |
parent | c93ab2a21f816469f4fc0d9454e391fc29a9e59c (diff) | |
download | brdo-6d1ffea494a977c4fca39be7b5155c5fb310cdb8.tar.gz brdo-6d1ffea494a977c4fca39be7b5155c5fb310cdb8.tar.bz2 |
- Added check to see whether $items is initiliazed. Thanks James.
-rw-r--r-- | includes/theme.inc | 8 |
1 files changed, 5 insertions, 3 deletions
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 .= "<b>$title</b><br />"; } - foreach ($items as $item) { - $output .= "- $item<br />"; + if (isset($items)) { + foreach ($items as $item) { + $output .= "- $item<br />"; + } } return $output; |