function render_entry($topic) { global $DB, $std, $ibforums; $topic['last_text'] = $ibforums->lang['last_post_by']; $topic['last_poster'] = ($topic['last_poster_id'] != 0) ? "{$topic['last_poster_name']}" : "-".$topic['last_poster_name']."-"; $topic['starter'] = ($topic['starter_id'] != 0) ? "{$topic['starter_name']}" : "-".$topic['starter_name']."-"; if ($topic['poll_state']) { $topic['prefix'] = $ibforums->vars['pre_polls'].' '; } if ( ($ibforums->member['id']) and ($topic['author_id']) ) { $show_dots = 1; } $topic['folder_img'] = $std->folder_icon($topic, $show_dots, $this->read_array[$topic['tid']]); // My modified code here if ( $topic['topic_icon'] = $topic['icon_id'] ) { if (is_numeric($topic['icon_id'])) { "{$topic["; } else { "{$topic['icon_id']}"; } } else { ""; } /* THE ORIGINAL HERE $topic['topic_icon'] = $topic['icon_id'] ? '' . $topic['icon_id'] . '' : ' '; END ORIGINAL */ // some other code ... }