Commit bb99a61f authored by Jason Bugiada's avatar Jason Bugiada Committed by Vladimir Roudakov
Browse files

Issue #3276247 by jasonfelix, mherchel, Amstercad, jaydee1818, Mark LaCroix,...

Issue #3276247 by jasonfelix, mherchel, Amstercad, jaydee1818, Mark LaCroix, VladimirAus: explode deprecation in PHP 8.1
parent cbc626fa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,8 +92,8 @@ class SettingsManager {
    ];

    // Populating extra options for top container.
    foreach (explode("\n", theme_get_setting('b5_top_container_config')) as $line) {
      $values = explode("|", trim($line));
    foreach (explode("\n", theme_get_setting('b5_top_container_config') ?? '') as $line) {
      $values = explode("|", trim($line) ?? '');
      if (is_array($values) && (count($values) == 2)) {
        $options_top_container += [trim($values[0]) => trim($values[1])];
      }