From 11910cdd6a838aa8a72d753deaf30efd99495afe Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 18 Oct 2016 17:14:58 +0100 Subject: [PATCH] Bug 17411: Remove 3 other occurrences of exit 1 --- C4/Items.pm | 2 -- tools/quotes/quotes_ajax.pl | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 7c5dfe6..7e1b4f1 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -869,7 +869,6 @@ sub GetItemStatus { $itemstatus{$authorisedvalue} = $lib; } return \%itemstatus; - exit 1; } else { @@ -955,7 +954,6 @@ sub GetItemLocation { $itemlocation{$authorisedvalue} = $lib; } return \%itemlocation; - exit 1; } else { diff --git a/tools/quotes/quotes_ajax.pl b/tools/quotes/quotes_ajax.pl index c4bbae3..9948313 100755 --- a/tools/quotes/quotes_ajax.pl +++ b/tools/quotes/quotes_ajax.pl @@ -50,7 +50,7 @@ if ($action eq 'add') { $sth->execute($params->{'source'}, $params->{'text'}); if ($sth->err) { warn sprintf('Database returned the following error: %s', $sth->errstr); - exit 1; + exit 0; } my $new_quote_id = $dbh->{q{mysql_insertid}}; # ALERT: mysqlism here $sth = $dbh->prepare('SELECT * FROM quotes WHERE id = ?;'); -- 2.8.1