From 463c086f3d3d78842f895d6fded2ff37fdb626c6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 19 Jul 2012 08:41:39 -0400 Subject: [PATCH] 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 --- members/files.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/members/files.pl b/members/files.pl index ca16b45..f011c77 100755 --- a/members/files.pl +++ b/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 ); -- 1.7.7.3