Changeset 2458777
- Timestamp:
- 01/19/2021 08:41:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
books-papers/trunk/classes/functions/bridge-replace_pub_updated.php
r2458733 r2458777 165 165 foreach($wpdb->get_results("SELECT *" . ($orderBy=="author" ? ", (select case when author_id is null then author_name else (select last_name from wp_books_and_papers_authors where id=author_id) end from " . $this->dbArticleAuthor . " where article_id=" . $this->dbArticles . ".id limit 1) as author" : "") . " FROM " . $this->dbArticles . " WHERE is_public IS NOT NULL" . ($prep == "only" ? " AND preprint IS NOT NULL" : ($prep == "ex" ? " AND preprint IS NULL": "")) . ($year != "0" ? " AND year=" . $year : "") . " AND `id` IN (" . $ids . ") ORDER BY $orderBy " . get_option('bnpp_list_order')) as $ar) 166 166 { 167 print_r($ar);168 167 $result_temp .= $this->fillArticleElement($ar); 169 168 } 170 169 } 171 print_r($this->dbArticles);172 170 if($result_temp != ""){ 173 171 $result .= get_option('bnpp_article_head') . $num_st . $result_temp . $num_en;
Note: See TracChangeset
for help on using the changeset viewer.