[php] fix warning errors

This commit is contained in:
nao-pon
2016-07-28 10:12:27 +09:00
parent 036028f37e
commit a626627201
2 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
**/
protected function _dimensions($path, $mime) {
clearstatcache();
return strpos($mime, 'image') === 0 && ($s = getimagesize($path)) !== false
return strpos($mime, 'image') === 0 && is_readable($path) && ($s = getimagesize($path)) !== false
? $s[0].'x'.$s[1]
: false;
}