From f1a8ca13028411384847615fbdeeaaedd9703382 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 Signed-off-by: Kyle M Hall --- 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 858afa404c..c31c022a1f 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.11.4.GIT