bail out if thumbs are smaller than 1 px (0=off)

This commit is contained in:
Garvin Hicking 2008-02-11 17:52:47 +00:00
parent d0192e7223
commit 270a01b543

View File

@ -609,6 +609,10 @@ function serendipity_makeThumbnail($file, $directory = '', $size = false, $thumb
if ($size === false) {
$size = $serendipity['thumbSize'];
}
if ($size < 1) {
return array(0,0);
}
if ($thumbname === false) {
$thumbname = $serendipity['thumbSuffix'];