Fixing error trap routine in picture-upload.pl
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
17fa446c18
commit
06575bbcb8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue