Skip to content

Commit

Permalink
fix explode() warnings
Browse files Browse the repository at this point in the history
closes #34
  • Loading branch information
alxndr-w authored Dec 27, 2023
1 parent 1ef04a6 commit ff4984f
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 ff4984f

Please sign in to comment.