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

(-)a/C4/Context.pm (-2 / +2 lines)
Lines 464-469 sub preference { Link Here
464
    my $self = shift;
464
    my $self = shift;
465
    my $var  = shift;                          # The system preference to return
465
    my $var  = shift;                          # The system preference to return
466
466
467
    $var = lc($var);
467
    if (exists $sysprefs{$var}) {
468
    if (exists $sysprefs{$var}) {
468
        return $sysprefs{$var};
469
        return $sysprefs{$var};
469
    }
470
    }
Lines 474-480 sub preference { Link Here
474
    my $sql = <<'END_SQL';
475
    my $sql = <<'END_SQL';
475
        SELECT    value
476
        SELECT    value
476
        FROM    systempreferences
477
        FROM    systempreferences
477
        WHERE    variable=?
478
        WHERE    LOWER(variable)=?
478
        LIMIT    1
479
        LIMIT    1
479
END_SQL
480
END_SQL
480
    $sysprefs{$var} = $dbh->selectrow_array( $sql, {}, $var );
481
    $sysprefs{$var} = $dbh->selectrow_array( $sql, {}, $var );
481
- 

Return to bug 6132