diff --git a/php/elFinder.class.php b/php/elFinder.class.php index 7bb814725..171c657a6 100644 --- a/php/elFinder.class.php +++ b/php/elFinder.class.php @@ -2694,7 +2694,7 @@ class elFinder curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch, CURLOPT_USERAGENT, $ua); - curl_setopt($ch, CURLOPT_RESOLVE, [$info['host'] . ':' . $info['port'] . ':' . $info['ip']]); + curl_setopt($ch, CURLOPT_RESOLVE, array($info['host'] . ':' . $info['port'] . ':' . $info['ip'])); $result = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($http_code == 301 || $http_code == 302) { diff --git a/php/elFinderVolumeDriver.class.php b/php/elFinderVolumeDriver.class.php index 0557bcab1..898f6ad8f 100644 --- a/php/elFinderVolumeDriver.class.php +++ b/php/elFinderVolumeDriver.class.php @@ -1280,7 +1280,7 @@ abstract class elFinderVolumeDriver // find available mimetype detect method $regexp = '/text\/x\-(php|c\+\+)/'; - $auto_types = []; + $auto_types = array(); if (class_exists('finfo', false)) { $tmpFileInfo = explode(';', finfo_file(finfo_open(FILEINFO_MIME), __FILE__));