Commit 6048d282 authored by Dries's avatar Dries

- Modified patch #45214 by markus: don't generate empty breadcrumb div.

parent 47dd0142
......@@ -525,7 +525,9 @@ function theme_image($path, $alt = '', $title = '', $attributes = NULL, $getsize
* @return a string containing the breadcrumb output.
*/
function theme_breadcrumb($breadcrumb) {
return '<div class="breadcrumb">'. implode(' » ', $breadcrumb) .'</div>';
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">'. implode(' » ', $breadcrumb) .'</div>';
}
}
/**
......
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