$topic_type="";
if ($class->forum['use_topic_types'])
{
$topic_type = "<tr><td id='row1'>Topic Type</td><td id='row1' width='100%' valign='top'><select class='forminput' name='topic_type'><option value=''>---</option></select></td></tr>";
$types = ";" . $class->forum['topic_types'] . ";";
$Type_Array = explode(';',$types);
foreach ($Type_Array AS $type)
{
if (trim($type)<>"")
{
$topic_type .= "<option value='".$type."'".($ibforums->input['topic_type']==$type ? ' checked' : '') . ">".$type."</option>";
}
}
$topic_type .= "</select></td></tr>";
}
I'm trying to call $topic_type, but it keeps coming out blank.
The database is properly populated as well, so there must be a problem with that code.
Can someone see any obvious errors on my part?