Bug 17411: Remove 3 other occurrences of exit 1
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
01636dca2f
commit
f1a8ca1302
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = ?;');
|
||||
|
|
|
|||
Loading…
Reference in New Issue