diff --git a/lib/contents.php b/lib/contents.php index 1d504f55..7e574ca5 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -17,7 +17,7 @@ function getContents($url, $header = array(), $opts = array()){ curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); - if(is_array($opts)) { + if(is_array($opts) && count($opts) !== 0) { debugMessage('Setting options: ' . json_encode($opts));