mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Remove trailing whitespace
This commit is contained in:
+13
-13
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user