]> git.wh0rd.org Git - tt-rss.git/commitdiff
fetch_file_contents: fix shim when invoked with 1 argument only
authorAndrew Dolgov <noreply@fakecake.org>
Thu, 31 Mar 2016 06:48:05 +0000 (09:48 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Thu, 31 Mar 2016 06:48:05 +0000 (09:48 +0300)
include/functions.php

index 0a74db85c29764a5f50c3beb973f2b00a6fe7129..d6bd5fb731295b33efd720327c2565c2380253cc 100755 (executable)
                global $fetch_last_content_type;
                global $fetch_curl_used;
 
-               if (!is_array($options) && func_num_args() > 1) {
+               if (!is_array($options)) {
 
                        // falling back on compatibility shim
                        $options = array(