Browse Source

z_fetch_url now always returns an array

pull/3228/head
Michael 4 years ago
parent
commit
ae64f6f7e2
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      include/network.php

+ 3
- 2
include/network.php View File

@ -72,8 +72,9 @@ function z_fetch_url($url,$binary = false, &$redirects = 0, $opts=array()) {
$a = get_app();
$ch = @curl_init($url);
if(($redirects > 8) || (! $ch))
return false;
if(($redirects > 8) || (! $ch)) {
return $ret;
}
@curl_setopt($ch, CURLOPT_HEADER, true);


Loading…
Cancel
Save