# HG changeset patch # User "Rex Tsai " # Date 1228488576 -28800 # Node ID 73c9bf51715531ee27e28f8abac751be202787d0 # Parent 2cdf6c6bfd0e34596cfe16a735f102c3ddd386c4 fixed for check checking diff -r 2cdf6c6bfd0e -r 73c9bf517155 Ikariam.pm --- a/Ikariam.pm Fri Dec 05 20:22:20 2008 +0800 +++ b/Ikariam.pm Fri Dec 05 22:49:36 2008 +0800 @@ -855,7 +855,6 @@ my $extractor = Ikariam::Extractor->new(content => $res->content); foreach (1..25) { my @links = $extractor->find(sprintf('//div[@class="spyinfo" and position() = %d]//a/@href', $_)); - last if($#links < 0); if ($links[0] =~ /id=(\d+)/) { $data->{$1}->{city} = $self->readCity($1); @{$data->{$1}->{risks}} = Ikariam::Extractor->new(content => $self->{mech}->get($links[1])->content)->find('//div[@class="missionRisk"]');