From 4a1e5245b37d35cf1c9eb49658d88f27933aad01 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Thu, 15 Dec 2016 20:24:31 +0100 Subject: [PATCH] [contents] Don't suppress errors returned by file_get_contents --- lib/contents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/contents.php b/lib/contents.php index e8c43a9..aa189ac 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -27,9 +27,9 @@ function getContents($url } 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 { - $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)