summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-18 19:02:34 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-18 19:02:34 +0000
commit6048d282ccc611177a5c6849364dd78e286da4d3 (patch)
treee352e9477f5467555d2d833cec74521a2e5f9d7e
parent47dd0142e6d081d01b10cf8a68a570d9ba7074a1 (diff)
downloadbrdo-6048d282ccc611177a5c6849364dd78e286da4d3.tar.gz
brdo-6048d282ccc611177a5c6849364dd78e286da4d3.tar.bz2
- Modified patch #45214 by markus: don't generate empty breadcrumb div.
-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>';
+ }
}
/**