bail out if thumbs are smaller than 1 px (0=off)
This commit is contained in:
parent
d0192e7223
commit
270a01b543
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user