Changeset 2458736
- Timestamp:
- 01/19/2021 07:29:12 AM (5 years ago)
- File:
-
- 1 edited
-
books-papers/trunk/classes/bridge.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
books-papers/trunk/classes/bridge.php
r2449035 r2458736 598 598 { 599 599 global $wpdb; 600 $sql = $wpdb->prepare("UPDATE $this->dbArticles SET title = %s, year = %s, pages = %s, doi = %s, url = %s, issn = %s, supplementary = %s, file_link = %s, date = %s, is_public = ", array( $title, $year, $pages, $doi, $url, $issn, $supp, $file, $date));600 $sql = $wpdb->prepare("UPDATE $this->dbArticles SET title = %s, year = %s, pages = %s, doi = %s, url = %s, issn = %s, supplementary = %s, file_link = %s, date = %s, is_public = ", array(str_replace("\\\"", "\"", $title), $year, $pages, $doi, $url, $issn, $supp, $file, $date)); 601 601 if($public != "") 602 602 { … … 647 647 { 648 648 global $wpdb; 649 $sql = $wpdb->prepare("UPDATE $this->dbConferences SET title = %s, year = %s, pages = %s, doi = %s, url = %s, issn = %s, supplementary = %s, file_link = %s, date = %s, is_public = ", array( $title, $year, $pages, $doi, $url, $issn, $supp, $file, $date));649 $sql = $wpdb->prepare("UPDATE $this->dbConferences SET title = %s, year = %s, pages = %s, doi = %s, url = %s, issn = %s, supplementary = %s, file_link = %s, date = %s, is_public = ", array(str_replace("\\\"", "\"", $title), $year, $pages, $doi, $url, $issn, $supp, $file, $date)); 650 650 if($public != "") 651 651 { … … 679 679 $sql.= "NULL"; 680 680 } 681 $sql.= $wpdb->prepare(", arxiv = %s, book_title = %s, conf_page = %s WHERE (id = %d)", array($arxiv, $bookTitle, $confPages, $articleID));681 $sql.= $wpdb->prepare(", arxiv = %s, book_title = %s, conf_page = %s WHERE (id = %d)", array($arxiv, str_replace("\\\"", "\"", $bookTitle), $confPages, $articleID)); 682 682 $wpdb->query($sql); 683 683 $timeout = get_option('bnpp_timeout_step') * 100; … … 688 688 { 689 689 global $wpdb; 690 $sql = $wpdb->prepare("UPDATE $this->dbBooks SET title = %s, year = %s, pages = %s, doi = %s, url = %s, issn = %s, supplementary = %s, file_link = %s, date = %s, is_public = ", array( $title, $year, $pages, $doi, $url, $issn, $supp, $file, $date));690 $sql = $wpdb->prepare("UPDATE $this->dbBooks SET title = %s, year = %s, pages = %s, doi = %s, url = %s, issn = %s, supplementary = %s, file_link = %s, date = %s, is_public = ", array(str_replace("\\\"", "\"", $title), $year, $pages, $doi, $url, $issn, $supp, $file, $date)); 691 691 if($public != "") 692 692 { … … 720 720 $sql.= "NULL"; 721 721 } 722 $sql.= $wpdb->prepare(", arxiv = %s, publisher = %s, chapter = %s, isbn = %s WHERE (id = %d)", array($arxiv, $publisher, $chapter, $isbn, $articleID));722 $sql.= $wpdb->prepare(", arxiv = %s, publisher = %s, chapter = %s, isbn = %s WHERE (id = %d)", array($arxiv, str_replace("\\\"", "\"", $publisher), $chapter, $isbn, $articleID)); 723 723 $wpdb->query($sql); 724 724 $timeout = get_option('bnpp_timeout_step') * 100;
Note: See TracChangeset
for help on using the changeset viewer.