Bug 28288: Prevent XSISBN.t to fail if service is returning 500
[srvgit] / opac / opac-registration-verify.pl
index f5cd15a..71ea329 100755 (executable)
@@ -29,7 +29,7 @@ use Koha::Patron::Consent;
 use Koha::Patron::Modifications;
 use Koha::Patron::Categories;
 
-my $cgi = new CGI;
+my $cgi = CGI->new;
 my $dbh = C4::Context->dbh;
 
 unless ( C4::Context->preference('PatronSelfRegistration') ) {