diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-22 02:16:18 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-22 02:16:18 +0000 |
commit | 0693214380bdb539ce2746be0ec244d9adeeabc9 (patch) | |
tree | c15a6367536244274a6c6644bf8fc4a85f6d5a7a | |
parent | 446fbb40c72272791b6275cdb6cb757edc9e9141 (diff) | |
download | puppet-0693214380bdb539ce2746be0ec244d9adeeabc9.tar puppet-0693214380bdb539ce2746be0ec244d9adeeabc9.tar.gz puppet-0693214380bdb539ce2746be0ec244d9adeeabc9.tar.bz2 puppet-0693214380bdb539ce2746be0ec244d9adeeabc9.tar.xz puppet-0693214380bdb539ce2746be0ec244d9adeeabc9.zip |
- rearrange order of argument, so they are in the same order in both query
-rw-r--r-- | modules/phpbb/files/phpbb_apply_config.pl | 6 |
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 $?"; } |