From 0693214380bdb539ce2746be0ec244d9adeeabc9 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 22 Feb 2011 02:16:18 +0000 Subject: - rearrange order of argument, so they are in the same order in both query --- modules/phpbb/files/phpbb_apply_config.pl | 6 +++--- 1 file 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 $?"; } -- cgit v1.2.1