From 6cb729e57be6b6fb1de41428e0bb7457b53d82e8 Mon Sep 17 00:00:00 2001 From: minima Date: Sat, 12 Mar 2005 11:28:52 +0000 Subject: [PATCH] fix more errors in pc19 and pc21 --- perl/Thingy/Rt.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/perl/Thingy/Rt.pm b/perl/Thingy/Rt.pm index fd67e9cc..71b7a43a 100644 --- a/perl/Thingy/Rt.pm +++ b/perl/Thingy/Rt.pm @@ -132,8 +132,7 @@ sub handle_cf RouteDB::delete($call, $chan_call); my $ref = Route::Node::get($call); if ($ref) { - my $r = $ref->del($parent); - push @pc21, $r if $r; + push @pc21, grep {$_} $ref->del($parent); } } } @@ -142,8 +141,7 @@ sub handle_cf next if $call eq $main::mycall; RouteDB::update($call, $chan_call); my $here = $in{$call}; - my $r = $parent->add($call, 0, $here); - push @pc19, $r if $r; + push @pc19, grep {$_} $parent->add($call, 0, $here); } } $thing->{pc21n} = \@pc21 if @pc21; -- 2.43.0