[php] fix #2014 "Parse error" on PHP < 5.3

This commit is contained in:
nao-pon
2017-05-21 00:18:00 +09:00
parent e4ba3c1b10
commit 117f5dee38
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -1084,7 +1084,7 @@ class elFinderVolumeBox extends elFinderVolumeDriver
protected function getSharedWebContentLink($raw)
{
$fExtension = pathinfo($raw->name, PATHINFO_EXTENSION);
$fType = explode('/', self::mimetypeInternalDetect($raw->name))[0];
list($fType) = explode('/', self::mimetypeInternalDetect($raw->name));
if ($raw->shared_link->url && ($fType == 'image' || $fType == 'video' || $fType == 'audio')) {
if ($fExtension == 'jpg' && $fType == 'image') {