Skip to content

Commit

Permalink
fixed sql text quoting, other fixes in blog ahead
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 2, 2006
1 parent f8ca405 commit 3055079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/blog_tags/block_blog_tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function get_content() {
$sql .= "FROM {$CFG->prefix}tags as t, {$CFG->prefix}blog_tag_instance as bt, {$CFG->prefix}post as p ";
$sql .= 'WHERE t.id = bt.tagid ';
$sql .= 'AND p.id = bt.entryid ';
$sql .= 'AND (p.publishstate = "site" or p.publishstate="public") ';
$sql .= 'AND (p.publishstate = \'site\' or p.publishstate=\'public\') ';
$sql .= "AND bt.timemodified > {$timewithin} ";
$sql .= 'GROUP BY bt.tagid ';
$sql .= 'ORDER BY ct DESC, t.text ASC ';
Expand Down

0 comments on commit 3055079

Please sign in to comment.