Browse Source

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>
3.10.x
Kyle Hall 12 years ago
committed by Paul Poulain
parent
commit
d5c51417b5
  1. 2
      members/files.pl

2
members/files.pl

@ -73,7 +73,7 @@ else {
my $filename = $cgi->param('uploadfile');
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) {
$template->param( errors => %errors );

Loading…
Cancel
Save