X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FThingy%2FRt.pm;h=71b7a43aba7cd28070aec45b4a375c7c8f9b20e3;hb=6cb729e57be6b6fb1de41428e0bb7457b53d82e8;hp=13756c2265bd48b2bb84d5c8f7aeda2e9a1b609d;hpb=dca951f539a50c396d7a94ad9f513a19892d54ad;p=spider.git diff --git a/perl/Thingy/Rt.pm b/perl/Thingy/Rt.pm index 13756c22..71b7a43a 100644 --- a/perl/Thingy/Rt.pm +++ b/perl/Thingy/Rt.pm @@ -131,7 +131,9 @@ sub handle_cf next if $call eq $main::mycall; RouteDB::delete($call, $chan_call); my $ref = Route::Node::get($call); - push @pc21, $ref->del($parent) if $ref; + if ($ref) { + push @pc21, grep {$_} $ref->del($parent); + } } } if ($add) { @@ -139,7 +141,7 @@ sub handle_cf next if $call eq $main::mycall; RouteDB::update($call, $chan_call); my $here = $in{$call}; - push @pc19, $parent->add($call, 0, $here); + push @pc19, grep {$_} $parent->add($call, 0, $here); } } $thing->{pc21n} = \@pc21 if @pc21;