Commit 6d1ffea4 authored by Dries's avatar Dries
Browse files

- Added check to see whether $items is initiliazed.  Thanks James.
parent c93ab2a2
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment