1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

Do not create thumbnail if thumbnail would've the same size as the original image. (Bug #30725)

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9462 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2009-04-17 15:35:56 +00:00
parent a7be268aa6
commit 87f1ef1e91
2 changed files with 2 additions and 1 deletions

View File

@@ -614,7 +614,7 @@ function create_thumbnail($source, $destination, $mimetype)
list($new_width, $new_height) = get_img_size_format($width, $height);
// Do not create a thumbnail if the resulting width/height is bigger than the original one
if ($new_width > $width && $new_height > $height)
if ($new_width >= $width && $new_height >= $height)
{
return false;
}