Skip to content

Commit

Permalink
Merge pull request #35 from alexplusde/explode-warnings
Browse files Browse the repository at this point in the history
fix explode() warnings
  • Loading branch information
alxndr-w authored Dec 27, 2023
2 parents 1ef04a6 + ff4984f commit 7c1d531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/speed_up.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct($profile = 'auto')
}

// Manuelle Einstellungen
$article_prefetch_config = explode(",", speed_up::getConfig('prefetch_articles'));
$article_prefetch_config = explode(",", speed_up::getConfig('prefetch_articles') ?? "");

if (self::getConfig('profile') === 'auto') {

Expand Down Expand Up @@ -173,7 +173,7 @@ public function getOutput()
$output .= self::getConfig('preload').PHP_EOL;
$output .= self::getConfig('prefetch').PHP_EOL;

$preload_media_config = explode(",", speed_up::getConfig('preload_media'));
$preload_media_config = explode(",", speed_up::getConfig('preload_media') ?? "");

foreach ($preload_media_config as $file) {
if ($media = rex_media::get($file)) {
Expand Down

0 comments on commit 7c1d531

Please sign in to comment.