Bug 17411: Remove 3 other occurrences of exit 1

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-10-18 17:14:58 +01:00 committed by Kyle M Hall
parent 01636dca2f
commit f1a8ca1302
2 changed files with 1 additions and 3 deletions

View File

@ -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 {

View File

@ -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 = ?;');