Bug 2505 : use warnings in smart_rules.pl

Fix some careless code redeclaring a variable
declaring a variable in a condition
so that these don't generate errors

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 6078c1acf6)
This commit is contained in:
Colin Campbell 2011-06-07 14:34:18 +01:00 committed by Jared Camins-Esakov
parent 4fb87d4e2f
commit 572ca29e63
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use strict;
#use warnings; FIXME - Bug 2505
use warnings;
use CGI;
use C4::Context;
use C4::Output;
@ -28,7 +28,7 @@ use C4::Debug;
use C4::Branch; # GetBranches
use C4::Dates qw/format_date format_date_in_iso/;
my $input = new CGI;
my $input = CGI->new;
my $dbh = C4::Context->dbh;
# my $flagsrequired;