#583716 by droidenator: Empty title can cause breadcrumbs to display incorrectly
authorJohnAlbin
Thu, 5 Nov 2009 13:13:45 +0000 (13:13 +0000)
committerJohnAlbin
Thu, 5 Nov 2009 13:13:45 +0000 (13:13 +0000)
CHANGELOG.txt
template.php

index cb277ba..9e4efc3 100644 (file)
@@ -2,6 +2,7 @@
 
 Zen 6.x-2.x-dev, xxxx-xx-xx (development release)
 ------------------------
+- #583716 by droidenator: Empty title can cause breadcrumbs to display incorrectly
 - #600920 by kto.3decb: Fix incorrect comment block class name
 - #624046: Replace zen_id_safe() with drupal_html_class() and drupal_html_id()
 - Renamed $closure_region region to $page_closure
index 20a3da0..af87aa1 100644 (file)
@@ -52,8 +52,9 @@ function zen_breadcrumb($breadcrumb) {
       $breadcrumb_separator = theme_get_setting('zen_breadcrumb_separator');
       $trailing_separator = $title = '';
       if (theme_get_setting('zen_breadcrumb_title')) {
-        $trailing_separator = $breadcrumb_separator;
-        $title = drupal_get_title();
+        if ($title = drupal_get_title()) {
+          $trailing_separator = $breadcrumb_separator;
+        }
       }
       elseif (theme_get_setting('zen_breadcrumb_trailing')) {
         $trailing_separator = $breadcrumb_separator;