Unverified Commit 6de59646 authored by Gonzalo Torrevejano's avatar Gonzalo Torrevejano Committed by Mateu Aguiló Bosch
Browse files

Issue #3260279 by interdruper, Bohus Ulrych, robphillips, siliconmeadow:...

Issue #3260279 by interdruper, Bohus Ulrych, robphillips, siliconmeadow: Deprecated function: strlen(): Passing null to parameter 1 ($string) of type string is deprecated in environment_indicator_toolbar()
parent 416002f1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -205,11 +205,11 @@ function environment_indicator_toolbar() {
    return $items;
  }
  $release_info = \Drupal::state()->get('environment_indicator.current_release');
  if (strlen($release_info)) {
  if (!empty($release_info)) {
    $release_info = '(' . $release_info . ')';
  }
  $title = implode(' ', array_filter([$release_info, $title]));
  if (!strlen($title)) {
  if (empty($title)) {
    return $items;
  }
  $items['environment_indicator'] += [