View | Details | Raw Unified | Return to bug 17411
Collapse All | Expand All

(-)a/C4/Items.pm (-2 lines)
Lines 869-875 sub GetItemStatus { Link Here
869
                $itemstatus{$authorisedvalue} = $lib;
869
                $itemstatus{$authorisedvalue} = $lib;
870
            }
870
            }
871
            return \%itemstatus;
871
            return \%itemstatus;
872
            exit 1;
873
        }
872
        }
874
        else {
873
        else {
875
874
Lines 955-961 sub GetItemLocation { Link Here
955
                $itemlocation{$authorisedvalue} = $lib;
954
                $itemlocation{$authorisedvalue} = $lib;
956
            }
955
            }
957
            return \%itemlocation;
956
            return \%itemlocation;
958
            exit 1;
959
        }
957
        }
960
        else {
958
        else {
961
959
(-)a/tools/quotes/quotes_ajax.pl (-2 / +1 lines)
Lines 50-56 if ($action eq 'add') { Link Here
50
    $sth->execute($params->{'source'}, $params->{'text'});
50
    $sth->execute($params->{'source'}, $params->{'text'});
51
    if ($sth->err) {
51
    if ($sth->err) {
52
        warn sprintf('Database returned the following error: %s', $sth->errstr);
52
        warn sprintf('Database returned the following error: %s', $sth->errstr);
53
        exit 1;
53
        exit 0;
54
    }
54
    }
55
    my $new_quote_id = $dbh->{q{mysql_insertid}}; # ALERT: mysqlism here
55
    my $new_quote_id = $dbh->{q{mysql_insertid}}; # ALERT: mysqlism here
56
    $sth = $dbh->prepare('SELECT * FROM quotes WHERE id = ?;');
56
    $sth = $dbh->prepare('SELECT * FROM quotes WHERE id = ?;');
57
- 

Return to bug 17411