From: minima Date: Sat, 12 Mar 2005 11:28:52 +0000 (+0000) Subject: fix more errors in pc19 and pc21 X-Git-Tag: R_1_52~90 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=commitdiff_plain;h=6cb729e57be6b6fb1de41428e0bb7457b53d82e8 fix more errors in pc19 and pc21 --- 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;