summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/theme.inc8
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;