Bug 33146: Unit tests
[koha-ffzg.git] / offline_circ / service.pl
index 00ae314..2d7ad95 100755 (executable)
@@ -34,7 +34,7 @@ my $nocookie = $cgi->param('nocookie') || 0;
 
 # get the status of the user, this will check his credentials and rights
 my ($status, $cookie, $sessionId) = C4::Auth::check_api_auth($cgi, undef);
-($status, $sessionId) = C4::Auth::check_cookie_auth($cgi, undef) if ($status ne 'ok' && !$nocookie);
+($status) = C4::Auth::check_cookie_auth($cgi, undef) if ($status ne 'ok' && !$nocookie);
 
 my $result;