src build elFinder-2.1-1f43c63

This commit is contained in:
nao-pon
2016-05-01 00:48:46 +09:00
parent 502adf0dc3
commit cf337bdde2
5 changed files with 12 additions and 8 deletions
+5 -1
View File
@@ -4232,7 +4232,11 @@ abstract class elFinderVolumeDriver {
}
if ($result) {
$result = $this->imgSquareFit($result, $tmbSize, $tmbSize, 'center', 'middle', $this->options['tmbBgColor'], 'png' );
if ($s = @getimagesize($tmb)) {
if ($s[0] !== $tmbSize || $s[1] !== $tmbSize) {
$result = $this->imgSquareFit($result, $tmbSize, $tmbSize, 'center', 'middle', $this->options['tmbBgColor'], 'png' );
}
}
}
}