Ja mam ten sam błąd

A przynajmniej podobny...
246-270 [u mnie błąd w linii 259]
[php] if ($mode == 'editpost')
{
remove_search_post($post_id);
}
if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$topic_vote = (!empty($poll_title) && count($poll_options) >= 2) ? 1 : 0;
$sql='SELECT COUNT(*) AS counter FROM '.TT_TABLE." WHERE forum_id=$forum_id AND tt_id=$topic_ttype";
if (!$result=$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in pre-TT posting', '', __LINE__, __FILE__, $sql);
}
$tt_row=$db->sql_fetchrow($result);
if ($tt_row['counter']!=1) $topic_ttype=0;
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_ttype, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_ttype, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_ttype = $topic_ttype, topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}[/php]
A 259 to
[php] message_die(GENERAL_ERROR, 'Error in pre-TT posting', '', __LINE__, __FILE__, $sql);[/php]