Commit 42474a2e authored by Kristoffer Wiklund's avatar Kristoffer Wiklund Committed by jyoti
Browse files

Issue #3036744 by kristofferwiklund, oakulm, FMB, xandeadx, nehajyoti:...

Issue #3036744 by kristofferwiklund, oakulm, FMB, xandeadx, nehajyoti: Function each() is deprecated since PHP 7.2
parent f376bc0a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -433,7 +433,8 @@ function _taxonomy_menu_trails_menu_breadcrumb_alter(&$active_trail, $selected_i
  // Flatten menu tree into injection array. This part was copied
  // from menu_set_active_trail().
  $injection = array();
  list($key, $curr) = each($tree);
  $curr = current($tree);
  $key = key($tree);
  while ($curr) {
    $link = $curr['link'];
    if ($link['in_active_trail']) {
@@ -456,7 +457,8 @@ function _taxonomy_menu_trails_menu_breadcrumb_alter(&$active_trail, $selected_i
      }
      $tree = $curr['below'] ? $curr['below'] : array();
    }
    list($key, $curr) = each($tree);
    $curr = current($tree);
    $key = key($tree);
  }

  // Inject our active trail to the passed active trail right after the "Home"