From 0eb5a5e6bb3af251a6179f5f92d3aade6fe5312e Mon Sep 17 00:00:00 2001 From: shish Date: Tue, 1 May 2007 08:35:48 +0000 Subject: [PATCH] get rid of a warning git-svn-id: file:///home/shish/svn/shimmie2/trunk@38 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/regen_thumb.ext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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':