Browse Source

fetch_file_contents: fix shim when invoked with 1 argument only

Andrew Dolgov 8 years ago
parent
commit
c71add385d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/functions.php

+ 1 - 1
include/functions.php

@@ -343,7 +343,7 @@
 		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(