MyBB Community Forums

Full Version: search.php loads wrong forum info
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The following piece of code seems wrong to me:
			if(!empty($forumcache[$thread['fid']]))
			{
				$post['forumlink_link'] = get_forum_link($post['fid']);
				$post['forumlink_name'] = $forumcache[$post['fid']]['name'];
				eval("\$post['forumlink'] = \"".$templates->get("search_results_posts_forumlink")."\";");
			}


FiIt should be $post['fid'] instead of $thread['fid'] in there.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/3973

Thanks for contributing to MyBB!

Regards,
The MyBB Group