Bug 2505: Enabled warnings in opac-addbybiblionumber.pl and opac-alert-subscribe.pl

Enabled warnings and fixed unintialized variables in opac-alert-subscribe.pl

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Garry Collum 2009-08-09 17:37:36 -04:00 committed by Galen Charlton
parent 7006c555ac
commit 508bd2baf1
2 changed files with 6 additions and 2 deletions

View File

@ -23,6 +23,8 @@
# Suite 330, Boston, MA 02111-1307 USA
use strict;
use warnings;
use C4::Biblio;
use CGI;
use C4::VirtualShelves qw/:DEFAULT GetRecentShelves RefreshShelvesSummary/;

View File

@ -19,6 +19,8 @@
use strict;
use warnings;
use CGI;
use C4::Auth;
use C4::Dates;
@ -30,13 +32,13 @@ use C4::Serials;
my $query = new CGI;
my $op = $query->param('op');
my $op = $query->param('op') || '';
my $dbh = C4::Context->dbh;
my $sth;
my ( $template, $loggedinuser, $cookie );
my $externalid = $query->param('externalid');
my $alerttype = $query->param('alerttype');
my $alerttype = $query->param('alerttype') || '';
my $biblionumber = $query->param('biblionumber');
( $template, $loggedinuser, $cookie ) = get_template_and_user(