diff --git a/php/elFinderVolumeDriver.class.php b/php/elFinderVolumeDriver.class.php index f91d0f584..ad5ed2470 100644 --- a/php/elFinderVolumeDriver.class.php +++ b/php/elFinderVolumeDriver.class.php @@ -541,7 +541,7 @@ abstract class elFinderVolumeDriver { * @author Alexey Sukhotin **/ public function mount(array $opts) { - if ($opts['path'] === '') { + if (!isset($opts['path']) || $opts['path'] === '') { return false; } diff --git a/php/elFinderVolumeMySQL.class.php b/php/elFinderVolumeMySQL.class.php index c8a202195..52861155d 100644 --- a/php/elFinderVolumeMySQL.class.php +++ b/php/elFinderVolumeMySQL.class.php @@ -577,7 +577,7 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver { * @author Dmitry (dio) Levashov **/ protected function _dimensions($path, $mime) { - return ($stat = $this->stat($path)) && $stat['width'] && $stat['height'] ? $stat['width'].'x'.$stat['height'] : ''; + return ($stat = $this->stat($path)) && isset($stat['width']) && isset($stat['height']) ? $stat['width'].'x'.$stat['height'] : ''; } /******************** file/dir content *********************/