View | Details | Raw Unified | Return to bug 7977
Collapse All | Expand All

(-)a/tools/quotes/quotes-upload_ajax.pl (-2 / +1 lines)
Lines 53-59 my $sth = $dbh->prepare('INSERT INTO quotes (source, text) VALUES (?, ?);'); Link Here
53
my $insert_count = 0;
53
my $insert_count = 0;
54
54
55
foreach my $quote (@$quotes) {
55
foreach my $quote (@$quotes) {
56
    $insert_count++ if $sth->execute($quote->[0], $quote->[1]);
56
    $insert_count++ if $sth->execute($quote->[1], $quote->[2]);
57
    if ($sth->err) {
57
    if ($sth->err) {
58
        warn sprintf('Database returned the following error: %s', $sth->errstr);
58
        warn sprintf('Database returned the following error: %s', $sth->errstr);
59
        $success = 'false';
59
        $success = 'false';
60
- 

Return to bug 7977