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) {
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;