quelled perl -w variable masking warnings
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 31 Oct 2007 00:18:05 +0000 (19:18 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 31 Oct 2007 10:56:31 +0000 (05:56 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm

index 558b228..b7b559d 100644 (file)
@@ -597,7 +597,6 @@ Exported function (core API) for deleting an item record in Koha.
 
 sub DelItem {
     my ( $dbh, $biblionumber, $itemnumber ) = @_;
-    my $dbh = C4::Context->dbh;
        
        # check the item has no current issues
        
@@ -3700,7 +3699,7 @@ sub _koha_add_biblioitem {
         cn_sort         = ?,
         totalissues     = ?
         ";
-       my $sth = $dbh->prepare($query);
+       $sth = $dbh->prepare($query);
     $sth->execute(
                $bibitemnum,
         $biblioitem->{'biblionumber'},
@@ -3800,7 +3799,7 @@ sub _koha_new_items {
                        materials                       = ?,
                        uri                             = ?
           ";
-    my $sth = $dbh->prepare($query);
+    $sth = $dbh->prepare($query);
        $sth->execute(
             $itemnumber,
                        $item->{'biblionumber'},