From d5c51417b5660116cd7b9b826749f945cc244c87 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/files.pl b/members/files.pl index ccd11bc28b..03a7847698 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 ); -- 2.39.5