Commit 9366fbc0 authored by Omkar Deshpande's avatar Omkar Deshpande Committed by Greg Boggs
Browse files

Issue #3281468 by omkar-pd, VynokurovD, apaderno, vinyl_roads, Greg Boggs:...

Issue #3281468 by omkar-pd, VynokurovD, apaderno, vinyl_roads, Greg Boggs: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated
parent af6987f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -251,10 +251,10 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
    $exclude = [];
    $curr_lang = $this->languageManager->getCurrentLanguage()->getId();
    $replacedTitles = [];
    $mapValues = preg_split('/[\r\n]+/', $this->config->get(EasyBreadcrumbConstants::REPLACED_TITLES));
    $configTitles = $this->config->get(EasyBreadcrumbConstants::REPLACED_TITLES);
    $mapValues = !empty($configTitles) ? preg_split('/[\r\n]+/', $configTitles) : [];  
    $limit_display = $this->config->get(EasyBreadcrumbConstants::LIMIT_SEGMENT_DISPLAY);
    $segment_limit = $this->config->get(EasyBreadcrumbConstants::SEGMENT_DISPLAY_LIMIT);

    foreach ($mapValues as $mapValue) {
      $values = explode("::", $mapValue);
      if (count($values) == 2) {