diff --git a/lib/WebGUI/Session/Var.pm b/lib/WebGUI/Session/Var.pm index f99edaa97..add693cc7 100644 --- a/lib/WebGUI/Session/Var.pm +++ b/lib/WebGUI/Session/Var.pm @@ -132,7 +132,7 @@ A reference to the session. sub new { my $class = shift; my $session = shift; - my $self = {_session=>$session}, $class; + my $self = bless {_session=>$session}, $class; my $sessionId = shift || $session->http->getCookies->{"wgSession"}; if ($sessionId eq "") { $self->start(1);