Bug 8130: [SIGNED-OFF] Followup - Empty file upload error never displays.

http://bugs.koha-community.org/show_bug.cgi?id=8130
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
This commit is contained in:
Kyle Hall 2012-07-19 08:41:39 -04:00 committed by Paul Poulain
parent 05d952a4a6
commit d5c51417b5

View file

@ -73,7 +73,7 @@ else {
my $filename = $cgi->param('uploadfile'); my $filename = $cgi->param('uploadfile');
my $mimetype = $cgi->uploadInfo($filename)->{'Content-Type'}; my $mimetype = $cgi->uploadInfo($filename)->{'Content-Type'};
$errors{'empty_upload'} = 1 unless ( length($uploaded_file) > 0 ); $errors{'empty_upload'} = 1 if ( -z $uploaded_file );
if (%errors) { if (%errors) {
$template->param( errors => %errors ); $template->param( errors => %errors );