Skip to content

Commit

Permalink
tag instance table could be used for other types, itmetype needs to b…
Browse files Browse the repository at this point in the history
…e specified in blog fetch() code
  • Loading branch information
toyomoyo committed Aug 31, 2007
1 parent cdcaa9f commit ebbf8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ function fetch_entries($postid='', $fetchlimit=10, $fetchstart='', $filtertype='

if ($tag) {
$tagtablesql = $CFG->prefix.'tag_instance ti, ';
$tagquerysql = ' AND ti.itemid = p.id AND ti.tagid = '.$tag.' ';
$tagquerysql = ' AND ti.itemid = p.id AND ti.tagid = '.$tag.' AND ti.itemtype = \'blog\' ';
} else {
$tagtablesql = '';
$tagquerysql = '';
Expand Down

0 comments on commit ebbf8c1

Please sign in to comment.