Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6d1ffea4
Commit
6d1ffea4
authored
Nov 09, 2002
by
Dries Buytaert
Browse files
- Added check to see whether $items is initiliazed. Thanks James.
parent
c93ab2a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/theme.inc
View file @
6d1ffea4
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment