]> dxcluster.org Git - spider.git/commitdiff
fix delete code
authorminima <minima>
Tue, 16 Jan 2007 11:52:55 +0000 (11:52 +0000)
committerminima <minima>
Tue, 16 Jan 2007 11:52:55 +0000 (11:52 +0000)
perl/Route/Node.pm

index ccbd91d1e1ce4b28da7b0a50985b8e5477f54fc2..e50302cd1b494e65a16fa04f3befb37e1b1c4337 100644 (file)
@@ -121,8 +121,9 @@ sub delete
        my @out;
        
        $self->_del_users;
-       foreach my $parent (@{$self->{parent}}) {
-               push @out, $parent->del($self);
+       foreach my $call (@{$self->{parent}}) {
+               my $parent = Route::Node::get($call);
+               push @out, $parent->del($self) if $parent;
        }
        return @out;
 }