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

(-)a/C4/Items.pm (-4 / +3 lines)
Lines 2316-2325 sub _koha_modify_item { Link Here
2316
    $query =~ s/,$//;
2316
    $query =~ s/,$//;
2317
    $query .= " WHERE itemnumber=?";
2317
    $query .= " WHERE itemnumber=?";
2318
    push @bind, $item->{'itemnumber'};
2318
    push @bind, $item->{'itemnumber'};
2319
    my $sth = C4::Context->dbh->prepare($query);
2319
    my $sth = $dbh->prepare($query);
2320
    $sth->execute(@bind);
2320
    $sth->execute(@bind);
2321
    if ( C4::Context->dbh->errstr ) {
2321
    if ( $sth->err ) {
2322
        $error.="ERROR in _koha_modify_item $query".$dbh->errstr;
2322
        $error.="ERROR in _koha_modify_item $query: ".$sth->errstr;
2323
        warn $error;
2323
        warn $error;
2324
    }
2324
    }
2325
    return ($item->{'itemnumber'},$error);
2325
    return ($item->{'itemnumber'},$error);
2326
- 

Return to bug 11803