summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-11-10 17:41:18 +0000
committerDries Buytaert <dries@buytaert.net>2007-11-10 17:41:18 +0000
commit049c6ddd96d727e0ba14ad97cf9a3c6575377669 (patch)
treee9581d4b977a6ff9de50ab650eba24f8d9fcf07b /modules
parent480c53b6dbcabba5dca76cfc24e1c284cff75c4c (diff)
downloadbrdo-049c6ddd96d727e0ba14ad97cf9a3c6575377669.tar.gz
brdo-049c6ddd96d727e0ba14ad97cf9a3c6575377669.tar.bz2
- Patch #186496 by Neil: do not overwrite the variable.
Diffstat (limited to 'modules')
-rw-r--r--modules/filter/filter.pages.inc13
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/filter/filter.pages.inc b/modules/filter/filter.pages.inc
index d85d29f1b..20c42095d 100644
--- a/modules/filter/filter.pages.inc
+++ b/modules/filter/filter.pages.inc
@@ -45,13 +45,12 @@ function theme_filter_tips($tips, $long = FALSE, $extra = '') {
$output .= '<strong>'. $name .'</strong>:<br />';
}
- $tips = '';
- foreach ($tiplist as $tip) {
- $tips .= '<li'. ($long ? ' id="filter-'. str_replace("/", "-", $tip['id']) .'">' : '>') . $tip['tip'] .'</li>';
- }
-
- if ($tips) {
- $output .= "<ul class=\"tips\">$tips</ul>";
+ if (count($tiplist) > 0) {
+ $output .= '<ul class="tips">';
+ foreach ($tiplist as $tip) {
+ $output .= '<li'. ($long ? ' id="filter-'. str_replace("/", "-", $tip['id']) .'">' : '>') . $tip['tip'] .'</li>';
+ }
+ $output .= '</ul>';
}
if ($multiple) {