Skip to content

Commit

Permalink
SQL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawhero committed Mar 10, 2006
1 parent c4d044b commit 417195c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blog/lib.php
Expand Up @@ -838,9 +838,9 @@ function blog_print_entry_content ($template, $entryid, $filtertype='', $filters

/// Links to tags

if ($blogtags = get_records_sql('SELECT tags.* FROM '.$CFG->prefix.'tags, '.$CFG->prefix.'blog_tag_instance
WHERE tags.id = blog_tag_instance.tagid
AND blog_tag_instance.entryid = '.$entryid)) {
if ($blogtags = get_records_sql('SELECT t.* FROM '.$CFG->prefix.'tags t, '.$CFG->prefix.'blog_tag_instance ti
WHERE t.id = ti.tagid
AND ti.entryid = '.$entryid)) {
echo '<p />';
print_string('tags', 'blog');
foreach ($blogtags as $blogtag) {
Expand Down

0 comments on commit 417195c

Please sign in to comment.