From 5c324d8201fff6e3a727c95e182ad32b78ccf715 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Kyle M Hall (cherry picked from commit f1a8ca13028411384847615fbdeeaaedd9703382) Signed-off-by: Frédéric Demians --- 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 a4e95a42e4..3954a5c6fc 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 c4bbae31e2..9948313dbf 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.39.5