There is nothing wrong with those lines you posted. Which is line 318?
Make sure that you have 3 closing braces after the message die and before the else, like this
Code: Select all
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not delete confirmation code', __LINE__, __FILE__, $sql);
}
}
}
else