View | Details | Raw Unified | Return to bug 19819
Collapse All | Expand All

(-)a/C4/Context.pm (-2 / +5 lines)
Lines 689-697 sub dbh Link Here
689
    my $self = shift;
689
    my $self = shift;
690
    my $params = shift;
690
    my $params = shift;
691
    my $sth;
691
    my $sth;
692
    state $dbh;
692
693
693
    unless ( $params->{new} ) {
694
    unless ( $params->{new} ) {
694
        return Koha::Database->schema->storage->dbh;
695
        unless ($dbh) {
696
            $dbh = Koha::Database->schema->storage->dbh;
697
        }
698
        return $dbh;
695
    }
699
    }
696
700
697
    return Koha::Database->schema({ new => 1 })->storage->dbh;
701
    return Koha::Database->schema({ new => 1 })->storage->dbh;
698
- 

Return to bug 19819