From 46094ae6d3872b5ce10ea544c83de636f8834e4d Mon Sep 17 00:00:00 2001 From: minima Date: Thu, 24 Feb 2005 19:17:25 +0000 Subject: [PATCH] allow null version on hello --- perl/Thingy/Hello.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl/Thingy/Hello.pm b/perl/Thingy/Hello.pm index a23bb438..aa51de1c 100644 --- a/perl/Thingy/Hello.pm +++ b/perl/Thingy/Hello.pm @@ -116,12 +116,12 @@ sub handle my @ref; my $uref = DXUser->get_current($user) || Thingy::Rt::_upd_user_rec($user, $origin)->put; if ($uref->is_node || $uref->is_aranea) { - push @ref, $nref->add($user, $thing->{v}, $thing->{h}); + push @ref, $nref->add($user, $thing->{v} || 0, $thing->{h} || 0); push @{$thing->{pc19n}}, @ref if @ref; do $_->np(1) for @ref; } else { $thing->{pc16n} = $nref; - push @ref, $nref->add_user($user, $thing->{h}); + push @ref, $nref->add_user($user, $thing->{h} || 0); $thing->{pc16u} = \@ref if @ref; } } -- 2.43.0