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

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

Return to bug 19819