Bug 30588: (QA follow-up) Auth - remove two warns and second logout
[srvgit] / svc / cover_images
index 688067f..a1d487a 100755 (executable)
@@ -25,9 +25,9 @@ use C4::Auth qw/check_cookie_auth/;
 use Koha::CoverImages;
 use JSON qw/to_json/;
 
-my $input = new CGI;
+my $input = CGI->new;
 
-my ( $auth_status, $sessionID ) =
+my ( $auth_status ) =
         check_cookie_auth(
             $input->cookie('CGISESSID'),
             { tools => 'upload_local_cover_images' } );
@@ -37,7 +37,7 @@ if ( $auth_status ne "ok" ) {
 }
 
 my $action       = $input->param('action');
-my @imagenumbers = $input->param('imagenumber');
+my @imagenumbers = $input->multi_param('imagenumber');
 
 # Array to store the reponse JSON
 my $response = [];