fetch_all_fids(); foreach($queryf as $forum) { $thread = C::t('forum_thread')->fetch_by_fid_displayorder($forum['fid']); $thread['shortsubject'] = cutstr($thread['subject'], 80); $lastpost = "{$thread['tid']}\t{$thread['shortsubject']}\t{$thread['lastpost']}\t{$thread['lastposter']}"; C::t('forum_forum')->update($forum['fid'], array('lastpost' => $lastpost)); } ?>