Menu ▾ ▴

#1 Dies with an error when uset with no settings

open
nobody
None
5
2001-02-09
2001-02-09
Zbigniew
No

Does not use default settings for sessions. The synopsis
in manual page does not work.
Here is a fix (I hope): change the settings function(line 254)
sub settings {
my $self = shift;
return undef unless (ref $self);
my $settings = shift;
if ($settings) {
warn "SETTINGS ==> " . Dumper($settings) if ($debug);
unless (ref($settings) eq 'HASH') {
carp('Settings must be called with hashref...\n');
return undef;
}

}
$self->{'settings'} = {
map { $_ => defined($settings->{$_}) ? $settings->{$_} : $default_settings->{$_} }
keys %$default_settings };

return $self->{'settings'};
} # END method settings

Discussion


Log in to post a comment.