From 2fca58ab52dc194af980ac87772b47bb384fb3e1 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 16 May 2020 13:52:52 +0200 Subject: [PATCH] 093 supprimer is_readable --- core/class/helper.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 1d4fd19f..432f09a3 100755 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -25,13 +25,11 @@ class helper { public static function urlGetContents ($url) { if(function_exists('file_get_contents') && - ini_get('allow_url_fopen') && - is_readable($url) ){ + ini_get('allow_url_fopen') ){ $url_get_contents_data = @file_get_contents($url); // Masque un warning éventuel }elseif(function_exists('fopen') && function_exists('stream_get_contents') && - ini_get('allow_url_fopen') && - is_readable($url) ){ + ini_get('allow_url_fopen')){ $handle = fopen ($url, "r"); $url_get_contents_data = stream_get_contents($handle); }else{