[Koha-patches] [PATCH] Bug 7796 - C4/VirtualShelves.pm needs globally scoped $dbh for plack
Dobrica Pavlinusic
dpavlin at rot13.org
Thu Mar 22 12:21:06 CET 2012
otherwise, we get a lot of "MySQL server has gone away" error messages
---
C4/VirtualShelves.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/VirtualShelves.pm b/C4/VirtualShelves.pm
index 85dbc9f..a37db41 100644
--- a/C4/VirtualShelves.pm
+++ b/C4/VirtualShelves.pm
@@ -54,7 +54,7 @@ BEGIN {
}
-my $dbh = C4::Context->dbh;
+our $dbh = C4::Context->dbh;
=head1 NAME
--
1.7.2.5
More information about the Koha-patches
mailing list