MyBB Community Forums

Full Version: [F] build_theme_select() bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

the build_theme_select function has a little bug it doesn't close the </select>

To fix it, in the functions.php
this
if(!$tid)
	{
		$themeselect .= "</select>";
	}
should be replaced by
if($tid)
	{
		$themeselect .= "</select>";
	}
as $tid is assiged the value 1 previously during the function which is a new thing in 1.2.3.

Regards
This bug has been fixed in the latest code.

Please note the latest code is not live on the site or for download. An update will be released which contains this fix.