courseid); if (!isset($post->groupid)) { $post->groupid = 0; } // find all the tags this post uses $usedtags = array(); if (isset($post->postid)) { if ($tagsused = get_records('blog_tag_instance', 'entryid', $post->postid)) { foreach ($tagsused as $usedtag) { $usedtags[] = $usedtag -> tagid; } } } ?>