Topic: Parse error: syntax error, unexpected T_ELSE
Parse error: syntax error, unexpected T_ELSE (myserver) on line 106 (of admin_forums.php).
This is what the code looks like:
redirect('admin_forums.php', 'Forum deleted. Redirecting …');
}
else // If the user hasn't confirmed the delete
{
$result = $db->query('SELECT forum_name FROM '.$db->prefix.'forums WHERE id='.$forum_id) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
$forum_name = pun_htmlspecialchars($db->result($result));
else if (isset($_GET['edit_d_forum'])) <== This is the line.
{
include(PUN_ROOT."/admin_forums.inc.a.php");
}
else if (isset($_GET['edit_l_forum']))
{
include(PUN_ROOT."/admin_forums.inc.b.php");
}
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Forums';
require PUN_ROOT.'header.php';
generate_admin_menu('forums');
This is from the PunDownload mod, when I click the Forums link in the Admin menu.
Any ideas on how to fix it?
-Thanks in advance.