diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-18 19:02:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-18 19:02:34 +0000 |
commit | 6048d282ccc611177a5c6849364dd78e286da4d3 (patch) | |
tree | e352e9477f5467555d2d833cec74521a2e5f9d7e | |
parent | 47dd0142e6d081d01b10cf8a68a570d9ba7074a1 (diff) | |
download | brdo-6048d282ccc611177a5c6849364dd78e286da4d3.tar.gz brdo-6048d282ccc611177a5c6849364dd78e286da4d3.tar.bz2 |
- Modified patch #45214 by markus: don't generate empty breadcrumb div.
-rw-r--r-- | includes/theme.inc | 4 |
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>'; + } } /** |