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

(-)a/C4/Context.pm (-3 / +4 lines)
Lines 549-555 the sysprefs cache. Link Here
549
549
550
sub set_preference {
550
sub set_preference {
551
    my $self = shift;
551
    my $self = shift;
552
    my $var = shift;
552
    my $var = lc(shift);
553
    my $value = shift;
553
    my $value = shift;
554
554
555
    my $dbh = C4::Context->dbh or return 0;
555
    my $dbh = C4::Context->dbh or return 0;
Lines 565-571 sub set_preference { Link Here
565
        ON DUPLICATE KEY UPDATE value = VALUES(value)
565
        ON DUPLICATE KEY UPDATE value = VALUES(value)
566
    " );
566
    " );
567
567
568
    $sth->execute( $var, $value );
568
    if($sth->execute( $var, $value )) {
569
        $sysprefs{$var} = $value;
570
    }
569
    $sth->finish;
571
    $sth->finish;
570
}
572
}
571
573
572
- 

Return to bug 6132