[contents] Don't suppress errors returned by file_get_contents
This commit is contained in:
parent
cad78be37b
commit
4a1e5245b3
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@ function getContents($url
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_null($maxlen)){
|
if(is_null($maxlen)){
|
||||||
$content = @file_get_contents($url, $use_include_path, $context, $offset);
|
$content = file_get_contents($url, $use_include_path, $context, $offset);
|
||||||
} else {
|
} else {
|
||||||
$content = @file_get_contents($url, $use_include_path, $context, $offset, $maxlen);
|
$content = file_get_contents($url, $use_include_path, $context, $offset, $maxlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($content === false)
|
if($content === false)
|
||||||
|
|
Loading…
Reference in a new issue