Mercurial > eagle-eye
changeset 291:73c9bf517155
fixed for check checking
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Fri, 05 Dec 2008 22:49:36 +0800 |
parents | 2cdf6c6bfd0e |
children | 071863adc14c 1d0a55318262 |
files | Ikariam.pm |
diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"]');