more session related bug fixes

This commit is contained in:
JT Smith 2006-01-13 22:23:24 +00:00
parent a6dd6c89e0
commit 297b9f8487
6 changed files with 10 additions and 6 deletions

View file

@ -99,7 +99,7 @@ A reference to the current WebGUI::Session.
=cut
sub new {
my $class = shift
my $class = shift;
my $session = shift;
my $settings = $session->db->buildHashRef("select * from settings");
bless {_settings=>$settings, _session=>$session}, $class;
@ -157,6 +157,7 @@ The value of the setting.
=cut
sub set {
my $self = shift;
my $name = shift;
my $value = shift;
$self->{_settings}{$name} = $value;