mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[php] fix warning errors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user