diff --git a/ext/regen_thumb.ext.php b/ext/regen_thumb.ext.php index a47ca4ef..291f5141 100644 --- a/ext/regen_thumb.ext.php +++ b/ext/regen_thumb.ext.php @@ -37,7 +37,7 @@ class RegenThumb extends Extension { switch($program) { case 'convert': - unlink($f_thumb); + if(file_exists($f_thumb)) unlink($f_thumb); exec("convert $f_image -geometry {$w}x{$h} -quality {$q} $f_thumb"); break; case 'gd':