From 99f593c73f82a49b35bf419547a136d818f35308 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Fri, 11 May 2012 10:35:25 -0400 Subject: [PATCH] Fixing a bug which results in quote fields being incorrectly offset when saving uploaded quotes Content-Type: text/plain; charset="utf-8" --- tools/quotes/quotes-upload_ajax.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/quotes/quotes-upload_ajax.pl b/tools/quotes/quotes-upload_ajax.pl index f1c3746..d2817d3 100755 --- a/tools/quotes/quotes-upload_ajax.pl +++ b/tools/quotes/quotes-upload_ajax.pl @@ -53,7 +53,7 @@ my $sth = $dbh->prepare('INSERT INTO quotes (source, text) VALUES (?, ?);'); my $insert_count = 0; foreach my $quote (@$quotes) { - $insert_count++ if $sth->execute($quote->[0], $quote->[1]); + $insert_count++ if $sth->execute($quote->[1], $quote->[2]); if ($sth->err) { warn sprintf('Database returned the following error: %s', $sth->errstr); $success = 'false'; -- 1.7.0.4