]> ruin.nu Git - ndwebbie.git/commitdiff
proper resources in cov op table
authorMichael Andreen <harv@ruin.nu>
Sun, 11 Nov 2007 21:07:32 +0000 (22:07 +0100)
committerMichael Andreen <harv@ruin.nu>
Sun, 11 Nov 2007 21:07:32 +0000 (22:07 +0100)
scripts/scans.pl

index 5eb746e5d2722b43495909b3080ad781826fb32d..756778ea8c3be35b6a1fb2b89cfbb4c6c068dff2 100755 (executable)
@@ -108,7 +108,7 @@ HTML
                        my $f = $dbh->prepare("UPDATE covop_targets SET metal = ?, crystal = ?, eonium = ? WHERE planet = ?");
                        if ($f->execute($2,$4,$6,$planet) < 1){
                                $f = $dbh->prepare("INSERT INTO covop_targets (planet,metal, crystal, eonium) VALUES(?,?,?,?)");
-                               $f->execute($planet,$4,$5,$6);
+                               $f->execute($planet,$2,$4,$6);
                        }
                }elsif ($type eq 'Jumpgate'){
                        $scantext .= <<HTML