aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/phpbb/files/phpbb_apply_config.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/phpbb/files/phpbb_apply_config.pl b/modules/phpbb/files/phpbb_apply_config.pl
index 09e9812a..8c776ce5 100644
--- a/modules/phpbb/files/phpbb_apply_config.pl
+++ b/modules/phpbb/files/phpbb_apply_config.pl
@@ -13,10 +13,10 @@ my $dbh = DBI->connect("dbi:Pg:","","");
my $table = "phpbb_config";
my $update = $dbh->prepare("UPDATE $table SET config_value = ?, is_dynamic = ? WHERE config_name = ?");
-my $insert = $dbh->prepare("INSERT INTO $table ( config_value, config_name, is_dynamic ) VALUES ( ? , ? , ? )");
+my $insert = $dbh->prepare("INSERT INTO $table ( config_value, is_dynamic, config_name ) VALUES ( ? , ? , ? )");
-my $res = $update->execute($VALUE ,1, $key) or die "cannot do update $?";
+my $res = $update->execute($VALUE, 1, $key) or die "cannot do update $?";
if ($res == 0 ) {
- $insert->execute($VALUE ,$key, 1) or die "cannot do insert $?";
+ $insert->execute($VALUE, 1, $key) or die "cannot do insert $?";
}