The breadcrumb div prints out even if it is empty.

Code in template.php is:

<?php
function blueprint_breadcrumb($breadcrumb) {
  // Don't add the title if menu_breadcrumb exists. TODO: Add a settings 
  // checkbox to optionally control the display.
  if (!module_exists('menu_breadcrumb') && count($breadcrumb) > 0) {
      $breadcrumb[] = drupal_get_title();
  }
  return '<div class="breadcrumb">'. implode(' &rsaquo; ', $breadcrumb) .'</div>';
}
?>

Probably should be along the line of:

<?php
function blueprint_breadcrumb($breadcrumb) {
  // Don't add the title if menu_breadcrumb exists. TODO: Add a settings 
  // checkbox to optionally control the display.
  if (!module_exists('menu_breadcrumb') && count($breadcrumb) > 0) {
      $breadcrumb[] = drupal_get_title();
  }
  return empty($breadcrumb) ? '' : '<div class="breadcrumb">' . implode(' &rsaquo; ', $breadcrumb) . '</div>';
}
?>

Comments

finex’s picture

The fix is correct