- Patch #186496 by Neil: do not overwrite the variable.

6.x
Dries Buytaert 2007-11-10 17:41:18 +00:00
parent 480c53b6db
commit 049c6ddd96
1 changed files with 6 additions and 7 deletions

View File

@ -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) {