ricevo questo errore dopo aver aggiornato alla versione di phpBB 3.0.14
Parse error: syntax error, unexpected T_IF, expecting ')' in /membri/fusioncommunity/forum/viewtopic.php on line 1651
grazie a chi può darmi delle info in merito
questo è il codice:
Codice: Seleziona tutto
// Official Topic Index MOD begin
[b]if (!empty($topic_data['post_index']) && $topic_data['post_index'] > 0 && $row['post_id'] == $topic_data['topic_first_post_id'] && $topic_data['post_index'] != $topic_id)[/b]
{
$icheker = checkif_inlist($topic_data['default_inindex'], $topic_data['inindex_topic'], $topic_data['outindex_topic']);
$iindex_url = (!empty($icheker)) ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f={$forum_id}&t={$topic_id}&iremove={$topic_id}") : append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f={$forum_id}&t={$topic_id}&iaddlist={$topic_id}");
$iindex_img = (!empty($icheker)) ? 'iremove-icon' : 'iinlist-icon';
$iindex_lan = (!empty($icheker)) ? $user->lang['REMOVE_INILIST'] : $user->lang['ADD_INILIST'];
$iindex_bb_img = (!empty($icheker)) ? $user->img('icon_post_iremove', 'REMOVE_INILIST') : $user->img('icon_post_iinlist', 'ADD_INILIST');
}
else
{
$iindex_url = '';
$iindex_img = '';
$iindex_lan = '';
$iindex_bb_img = '';
}
// Official Topic Index MOD end