]> ruin.nu Git - ndwebbie.git/blobdiff - scripts/scans.pl
proper resources in cov op table
[ndwebbie.git] / 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