[VD:Box] fix notice error on _dimensions()

This commit is contained in:
nao-pon
2020-01-01 11:52:09 +09:00
parent 9a12454dbb
commit 4e38cffafa
+2 -1
View File
@@ -1385,7 +1385,8 @@ class elFinderVolumeBox extends elFinderVolumeDriver
$cache['height'] = $size[1];
$ret = array('dim' => $size[0] . 'x' . $size[1]);
$srcfp = fopen($work, 'rb');
if ($subImgLink = $this->getSubstituteImgLink(elFinder::$currentArgs['target'], $size, $srcfp)) {
$target = isset(elFinder::$currentArgs['target'])? elFinder::$currentArgs['target'] : '';
if ($subImgLink = $this->getSubstituteImgLink($target, $size, $srcfp)) {
$ret['url'] = $subImgLink;
}
}