Lines 563-569
sub _parseletter_sth {
Link Here
|
563 |
($table eq 'aqbooksellers') ? "SELECT * FROM $table WHERE id = ?" : |
563 |
($table eq 'aqbooksellers') ? "SELECT * FROM $table WHERE id = ?" : |
564 |
($table eq 'aqorders' ) ? "SELECT * FROM $table WHERE ordernumber = ?" : |
564 |
($table eq 'aqorders' ) ? "SELECT * FROM $table WHERE ordernumber = ?" : |
565 |
($table eq 'opac_news' ) ? "SELECT * FROM $table WHERE idnew = ?" : |
565 |
($table eq 'opac_news' ) ? "SELECT * FROM $table WHERE idnew = ?" : |
566 |
($table eq 'borrower_modifications') ? "SELECT * FROM $table WHERE borrowernumber = ? OR verification_token =?": |
566 |
($table eq 'borrower_modifications') ? "SELECT * FROM $table WHERE ( borrowernumber = 0 OR borrowernumber = ? ) AND ( verification_token = '' OR verification_token = ? ) AND ( verification_token != '' OR borrowernumber != 0 )" : |
567 |
undef ; |
567 |
undef ; |
568 |
unless ($query) { |
568 |
unless ($query) { |
569 |
warn "ERROR: No _parseletter_sth query for table '$table'"; |
569 |
warn "ERROR: No _parseletter_sth query for table '$table'"; |
570 |
- |
|
|