my $self = shift;
my $var = shift; # The system preference to return
$var = lc($var);
if (exists $sysprefs{$var}) {
return $sysprefs{$var};
}
my $sql = <<'END_SQL';
SELECT value
FROM systempreferences
WHERE variable=?
WHERE LOWER(variable)=?
LIMIT 1
END_SQL
$sysprefs{$var} = $dbh->selectrow_array( $sql, {}, $var );
-