From 34641a75e4ee2af1dbba0811aa117ac27359d1ff Mon Sep 17 00:00:00 2001 From: "Dmitry (dio) Levashov" Date: Wed, 14 Mar 2012 23:58:05 +0400 Subject: [PATCH] minor fixes --- php/elFinderVolumeDriver.class.php | 2 +- php/elFinderVolumeMySQL.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 *********************/