- Timestamp:
- 12/31/13 09:45:56 (12 years ago)
- Branch:
- 2.6
- Children:
- 2628:a46041c31f11, 2631:505e3c81524e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/actions/class.dcactioncomments.php
r2550 r2627 89 89 90 90 protected function fetchEntries($from) { 91 $params=array(); 91 92 if (!empty($from['comments'])) { 92 93 $comments = $from['comments']; … … 97 98 98 99 $params['sql'] = 'AND C.comment_id IN('.implode(',',$comments).') '; 100 } else { 101 $params['sql'] = 'AND 1=0 '; 102 } 99 103 100 if (!isset($from['full_content']) || empty($from['full_content'])) { 101 $params['no_content'] = true; 102 } 103 104 $co = $this->core->blog->getComments($params); 105 while ($co->fetch()) { 106 $this->entries[$co->comment_id] = array( 107 'title' => $co->post_title, 108 'author' => $co->comment_author 109 ); 110 } 111 $this->rs = $co; 112 } else { 113 $this->rs = $this->core->con->select("SELECT blog_id FROM ".$this->core->prefix."blog WHERE false");; 104 if (!isset($from['full_content']) || empty($from['full_content'])) { 105 $params['no_content'] = true; 114 106 } 107 $co = $this->core->blog->getComments($params); 108 while ($co->fetch()) { 109 $this->entries[$co->comment_id] = array( 110 'title' => $co->post_title, 111 'author' => $co->comment_author 112 ); 113 } 114 $this->rs = $co; 115 115 } 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.