From 4e38cffafa969df491b983264997bc4e7935afb2 Mon Sep 17 00:00:00 2001 From: nao-pon Date: Wed, 1 Jan 2020 11:52:09 +0900 Subject: [PATCH] [VD:Box] fix notice error on `_dimensions()` --- php/elFinderVolumeBox.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/elFinderVolumeBox.class.php b/php/elFinderVolumeBox.class.php index 75b9a9586..eb5add31e 100644 --- a/php/elFinderVolumeBox.class.php +++ b/php/elFinderVolumeBox.class.php @@ -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; } }