Fixing error trap routine in picture-upload.pl

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Nighswonger 2008-02-23 06:28:06 -05:00 committed by Joshua Ferraro
parent 17fa446c18
commit 06575bbcb8
1 changed files with 1 additions and 1 deletions

View File

@ -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