make stow return false values correctly

This commit is contained in:
Graham Knop 2008-11-24 02:57:11 +00:00
parent 24a26a36b1
commit 8e81a01ba1

View file

@ -120,7 +120,7 @@ sub get {
my $opt = shift || {};
return undef if $self->session->config->get("disableCache");
my $value = $self->{_data}{$var};
return unless $value;
return undef unless defined $value;
my $ref = ref $value;
return $value if ( !$ref || $opt->{noclone} );