From e6b0301b97b3d299763be3510d0a4ad7194d5915 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Tue, 7 Jun 2011 14:34:18 +0100 Subject: [PATCH] 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 (cherry picked from commit 6078c1acf699f51c127e853203e35cadae99005d) Signed-off-by: Jared Camins-Esakov --- admin/smart-rules.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index f29093411b..56c567e6d5 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -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; -- 2.39.5