diff --git a/lib/contents.php b/lib/contents.php index 2910b47e..903f65e7 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -252,7 +252,11 @@ function getSimpleHTMLDOMCached($url, && !Debug::isEnabled()) { // Contents within duration $content = $cache->loadData(); } else { // Content not within duration - $content = getContents($url, $header, $opts); + $content = getContents( + $url, + $header ?? [], + $opts ?? [] + ); if($content !== false) { $cache->saveData($content); }