From 06575bbcb833a76936d85fde396ff87f1a4dec64 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Sat, 23 Feb 2008 06:28:06 -0500 Subject: [PATCH] Fixing error trap routine in picture-upload.pl Signed-off-by: Joshua Ferraro --- tools/picture-upload.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/picture-upload.pl b/tools/picture-upload.pl index b08b656988..3bd4acc618 100755 --- a/tools/picture-upload.pl +++ b/tools/picture-upload.pl @@ -46,7 +46,7 @@ if ( $uploadfile ) { close $tfh; - unless (system("unzip $tempfile -d $dirname")) { + unless (system("unzip $tempfile -d $dirname") == 0) { $errors{'UZIPFAIL'} = $uploadfilename; $template->param( ERRORS => [ \%errors ] ); output_html_with_http_headers $input, $cookie, $template->output; # This error is fatal to the import, so bail out here -- 2.39.5