diff --git a/lib/speed_up.php b/lib/speed_up.php index f9771d0..f0105ba 100644 --- a/lib/speed_up.php +++ b/lib/speed_up.php @@ -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') { @@ -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)) {