Skip to content
Snippets Groups Projects
Commit 61f871fc authored by Patrick Meidl's avatar Patrick Meidl
Browse files

fixed autoloading bug in constructor

parent 0bbdfe3c
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,10 @@ sub new {
my $class = ref($caller) || $caller;
my $self = $class->SUPER::new(@_);
# initialise internal datastructure
$self->{'cache'}->{'entries'} = [];
# initialise internal datastructure unless we loaded a serialised object
unless ($self->loaded) {
$self->{'cache'}->{'entries'} = [];
}
return $self;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment