Undefined array key "breadcrumb" in gin_preprocess_breadcrumb

Created on 4 August 2023, 11 months ago
Updated 18 April 2024, 2 months ago

Problem/Motivation

Getting the following notice on places that don't have breadcrumb set

Warning: Undefined array key "breadcrumb" in gin_preprocess_breadcrumb() (line 19 of themes/contrib/gin/includes/breadcrumb.theme).
gin_preprocess_breadcrumb(Array, 'breadcrumb', Array)

Code is currently

function gin_preprocess_breadcrumb(&$variables) {
  // Alter node breadcrumb.
  if ($variables['breadcrumb']) {

Should be checked to see if it's set first

function gin_preprocess_breadcrumb(&$variables) {
  // Alter node breadcrumb.
  if (isset($variables['breadcrumb'])) {
๐Ÿ› Bug report
Status

Closed: outdated

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024