Commit ad3b48d2 authored by Eric Alvares's avatar Eric Alvares Committed by Neslee Canil Pinto
Browse files

Issue #3284417 by Eric_A: Fatal error: Uncaught TypeError (PHP 7: Warning:...

Issue #3284417 by Eric_A: Fatal error: Uncaught TypeError (PHP 7: Warning: array_key_exists(): The first argument should be either a string or an integer)
parent 2a0fe0a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -489,7 +489,7 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
                  if ($entity instanceof EntityInterface && $entity->hasLinkTemplate('canonical')) {
                    $title = $entity->label();
                    // If the title is to be replaced replaces the title.
                    if (!empty($title) && array_key_exists($title, $replacedTitles)) {
                    if (!empty($title) && array_key_exists((string) $title, $replacedTitles)) {
                      $title = $replacedTitles[(string) $title];
                    }
                    if ($title && $this->config->get(EasyBreadcrumbConstants::TRUNCATOR_MODE)) {