src build elFinder-2.1-1de97ca

This commit is contained in:
nao-pon
2020-03-19 23:06:56 +09:00
parent 7d7174dbad
commit 94ae382c8c
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -705,7 +705,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver
protected function _dimensions($path, $mime)
{
clearstatcache();
return strpos($mime, 'image') === 0 && is_readable($path) && ($s = getimagesize($path)) !== false
return strpos($mime, 'image') === 0 && is_readable($path) && filesize($path) && ($s = getimagesize($path)) !== false
? $s[0] . 'x' . $s[1]
: false;
}