Skip to content

Commit

Permalink
Exclude draft posting form blog tag iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
olafgleba committed Jul 29, 2011
1 parent dbe53c6 commit df34c4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions welcompose/core/content_classes/blogtag.class.php
Expand Up @@ -550,6 +550,8 @@ public function selectBlogTags ($params = array())
$sql .= " AND `content_blog_postings`.`page` = :page ";
$bind_params['page'] = $page;
}
// exclude draft postings
$sql .= " AND `content_blog_postings`.`draft` = '0' ";

// aggregate result set
$sql .= " GROUP BY `content_blog_tags`.`id` ";
Expand Down

0 comments on commit df34c4e

Please sign in to comment.