Added a couple of missing $dbh->disconnect lines that were logging errors
authortonnesen <tonnesen>
Mon, 5 Feb 2001 17:47:58 +0000 (17:47 +0000)
committertonnesen <tonnesen>
Mon, 5 Feb 2001 17:47:58 +0000 (17:47 +0000)
in apache log files.

C4/Circulation/Circ2.pm

index d19efaa..2de0bc8 100755 (executable)
@@ -70,6 +70,7 @@ sub getbranches {
 #      (next) if ($branch->{'branchcode'} eq 'TR');
        $branches{$branch->{'branchcode'}}=$branch;
     }
+    $dbh->disconnect;
     return (\%branches);
 }
 
@@ -83,6 +84,7 @@ sub getprinters {
     while (my $printer=$sth->fetchrow_hashref) {
        $printers{$printer->{'printqueue'}}=$printer;
     }
+    $dbh->disconnect;
     return (\%printers);
 }