Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
my $insert_count = 0;
foreach my $quote (@$quotes) {
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';
if ($sth->err) {
warn sprintf('Database returned the following error: %s', $sth->errstr);
$success = 'false';