From cbc5bbccdd02f1b9041f93db8b8b41c16262657c Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Thu, 6 Mar 2008 09:05:47 +1300 Subject: [PATCH] Correction to handle errors processing image file passed in from the patron details screen. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- tools/picture-upload.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/picture-upload.pl b/tools/picture-upload.pl index 849e1e39f9..96e84eaafb 100755 --- a/tools/picture-upload.pl +++ b/tools/picture-upload.pl @@ -137,7 +137,7 @@ if ( $uploadfile ) { $template->param(filetype => $filetype ); } -if ( $borrowernumber ) { +if ( $borrowernumber && !$errors && !$template->param('ERRORS') ) { my $urlbase = $input->url(-base => 1 -rewrite => 1); print $input->redirect ("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber"); } else { -- 2.39.5