summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/theme.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index feadc0895..e7e14f3ef 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -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>';
+ }
}
/**