Remove trailing whitespace

This commit is contained in:
j883376
2013-05-06 13:07:41 -04:00
parent 7a93966158
commit ffcff4aea1
548 changed files with 16397 additions and 16398 deletions
+13 -13
View File
@@ -27,7 +27,7 @@ while (my $ref = $sth->fetchrow_hashref()) {
$count++;
}
}
for(my $i = 1; $i <= 12; $i++) {
my $field_name = "mod_r" . $i;
if($ref->{$field_name} != 0) {
@@ -37,74 +37,74 @@ while (my $ref = $sth->fetchrow_hashref()) {
$count++;
}
}
if($ref->{"mod_r14"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r14"}, "r14");
$count++;
}
if($ref->{"mod_r42"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r42"}, "r42");
$count++;
}
if($ref->{"mod_r75"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r75"}, "r75");
$count++;
}
if($ref->{"mod_r108"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r108"}, "r108");
$count++;
}
if($ref->{"mod_r128"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r128"}, "r128");
$count++;
}
if($ref->{"mod_r130"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r130"}, "r130");
$count++;
}
if($ref->{"mod_r161"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r161"}, "r161");
$count++;
}
if($ref->{"mod_r330"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r330"}, "r330");
$count++;
}
if($ref->{"mod_r367"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r367"}, "r367");
$count++;
}
if($ref->{"mod_r522"} != 0) {
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{"mod_r522"}, "r522");
$count++;
}
for(my $i = 201; $i <= 216; $i++) {
my $field_name = "mod_d" . $i;
if($ref->{$field_name} != 0) {
my $mod_name = "d" . $i;
my $rsth = $dbh->prepare("REPLACE INTO `faction_list_mod` (`faction_id`,`mod`,`mod_name`) VALUES(?, ?, ?)");
$rsth->execute($ref->{id}, $ref->{$field_name}, $mod_name);
$count++;
$count++;
}
}
}