signed-off-by Jonathan Druart <jonathan.druart@biblibre.com>
my $filename=$borrowernumber.'.jpg';
my $upload_filehandle = $input->upload("photo");
- open UPLOADFILE, ">$upload_dir/$filename";
- binmode UPLOADFILE;
+ open (my $upload_fh, '>', "$upload_dir/$filename");
+ binmode $upload_fh;
while ( <$upload_filehandle> )
{
- print UPLOADFILE;
+ print $upload_fh;
}
- close UPLOADFILE;
+ close $upload_fh;
}
else {
$template->param(
my @branchloop;
foreach (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) {
- my $selected = 1 if $branches->{$_}->{branchcode} eq $$patron{branchcode};
+ my $selected;
+ $selected = 1 if $branches->{$_}->{branchcode} eq $$patron{branchcode};
my %row = ( value => $_,
selected => $selected,
branchname => $branches->{$_}->{branchname},
serials sms suggestion t tags test tools virtualshelves Koha);
my @dirs = qw( acqui admin authorities basket catalogue cataloguing circ debian errors labels
- offline_circ reserve reviews rotating_collections serials sms virtualshelves Koha);
+ members offline_circ reserve reviews rotating_collections serials sms virtualshelves Koha misc);
if ( not $ENV{TEST_QA} ) {
my $msg = 'Author test. Set $ENV{TEST_QA} to a true value to run';