]> ruin.nu Git - ndwebbie.git/commitdiff
minor fixes
authorMichael Andreen <harv@ruin.nu>
Thu, 14 Dec 2006 19:21:43 +0000 (19:21 +0000)
committerMichael Andreen <harv@ruin.nu>
Thu, 14 Dec 2006 19:21:43 +0000 (19:21 +0000)
intel.pl
templates/intel.tmpl

index 2b33c5e4849d19afff8f79f7781aa83ea798f6b4..30b6cf8083e465eff010bcfca0e328989d28e1cd 100644 (file)
--- a/intel.pl
+++ b/intel.pl
@@ -143,6 +143,7 @@ if ($planet){
                                OR ( t.alliance_id = o.alliance_id AND i.mission = 'Attack'))
                        AND i.sender NOT IN (SELECT planet FROM users u NATURAL JOIN groupmembers gm WHERE gid = 8 AND planet IS NOT NULL)
                        $showticks}));
+       $query->execute() or print $DBH->errstr;
 
        my @intellists;
        my @intel;
@@ -154,7 +155,7 @@ if ($planet){
                }
                push @intel,$intel;
        }
-       push @intellists,{Message => q{Missions where alliances doesn't match}, Intel => \@intel, Origin => 1, Target => 1};
+       push @intellists,{Message => q{Intel where alliances doesn't match}, Intel => \@intel, Origin => 1, Target => 1};
        $BODY->param(IntelLIsts => \@intellists);
 }
 my $query = $DBH->prepare(q{SELECT i.id, u.username, i.message, report_date FROM intel_messages i
index e6df411c0caa0cc70f7e1d390d3fa8dd54a69a63..9ad77d17c4a9b9846d327cdd30554db603a93d98 100644 (file)
@@ -4,7 +4,7 @@
        <input type="hidden" name="page" value="intel"/>
        </p>
 </form>
-<p><a href="index.pl?page=intel&amp;show=all&amp;coords=<TMPL_VAR NAME=Coords>">Show all ticks</a></p>
+<p><a href="index.pl?page=intel<TMPL_IF Coords>&amp;coords=<TMPL_VAR NAME=Coords></TMPL_IF>&amp;show=all">Show all ticks</a></p>
 
 <TMPL_IF Coords>
 <form action="index.pl" method="post">