Fix some compile time errors reported in test suite
authorColin Campbell <colin.campbell@ptfs-europe.com>
Fri, 26 Nov 2010 14:39:18 +0000 (14:39 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 1 Dec 2010 19:53:53 +0000 (08:53 +1300)
redeclaration of itemnumber in RotatingCollections
A couple of errors caused by retaining commas in qw()

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Creators.pm
C4/Patroncards.pm
C4/RotatingCollections.pm

index c9538e2..47900b5 100644 (file)
@@ -2,7 +2,7 @@ package C4::Creators;
 
 BEGIN {
     use version; our $VERSION = qv('1.0.0_1');
-    use vars qw(@EXPORT, @ISA);
+    use vars qw(@EXPORT @ISA);
     @ISA = qw(Exporter);
     our @EXPORT = qw(get_all_templates
                      get_all_layouts
index cc20c2c..e833193 100644 (file)
@@ -2,7 +2,7 @@ package C4::Patroncards;
 
 BEGIN {
     use version; our $VERSION = qv('1.0.0_1');
-    use vars qw(@EXPORT, @ISA);
+    use vars qw(@EXPORT @ISA);
     @ISA = qw(Exporter);
     our @EXPORT = qw(unpack_UTF8
                      text_alignment
index c880fe8..b576868 100644 (file)
@@ -504,7 +504,7 @@ sub isItemInAnyCollection {
       
   my $row = $sth->fetchrow_hashref;
         
-  my $itemnumber = $$row{'itemnumber'};
+  $itemnumber = $row->{itemnumber};
   $sth->finish;
             
   if ( $itemnumber ) {