From 4f1af19d101c1940235850a7ea67a0ee7af85880 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 6 Jun 2008 01:50:20 +0000 Subject: - Patch #267203 by Rob Loach: attributes of theme_item_list can be deceiving. If you have a look at theme_item_list you see that the $attributes variable takes a NULL value. This makes you believe that it wants a string, rather then a full array of attributes. If you make the default parameter "array()" it will make the programmer expect to pass an array of attributes rather then a string of attributes. --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/theme.inc b/includes/theme.inc index 18e7e160f..142226b85 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1480,7 +1480,7 @@ function theme_mark($type = MARK_NEW) { * @return * A string containing the list output. */ -function theme_item_list($items = array(), $title = NULL, $type = 'ul', $attributes = NULL) { +function theme_item_list($items = array(), $title = NULL, $type = 'ul', $attributes = array()) { $output = '
'; if (isset($title)) { $output .= '

' . $title . '

'; -- cgit v1.2.3