From: Michael Andreen Date: Tue, 30 Jan 2007 07:08:39 +0000 (+0000) Subject: fix X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=f95cb73d3dcad85f14d2609c427ecf35aaabb7a5;hp=4edb40adc7df316354ceb81df34ce5084276e3ca;p=ndwebbie.git fix --- diff --git a/ND/Web/Pages/Raids.pm b/ND/Web/Pages/Raids.pm index 2c49a1a..65aa7e9 100644 --- a/ND/Web/Pages/Raids.pm +++ b/ND/Web/Pages/Raids.pm @@ -19,7 +19,7 @@ package ND::Web::Pages::Raids; use strict; -use warnings FATAL => 'all'; +use warnings; use ND::Include; use POSIX; use CGI qw/:standard/; @@ -224,7 +224,7 @@ sub render_body { $target{comment} = parseMarkup($target->{comment}) if ($target->{comment}); my $scans = $DBH->prepare(q{SELECT DISTINCT ON (type) type, tick, scan FROM scans - WHERE planet = ? AND type ~ 'Unit|Planet|Military|.* Analysis' AND tick + 24 > tick() + WHERE planet = ? AND type ~ 'Unit|Planet|Military|.* Analysis' AND tick + 24 > tick() AND scan is not null GROUP BY type, tick, scan ORDER BY type ,tick DESC}); $scans->execute($target->{planet}); my %scans; @@ -237,7 +237,7 @@ sub render_body { next unless exists $scans{$type}; my $scan = $scans{$type}; if ($self->{TICK} - $scan->{tick} > 5){ - $scan->{scan} =~ s{}{}; + $scan->{scan} =~ s{}{}; } if ($type eq 'Planet'){ $target{PlanetScan} = $scan->{scan};