Dort habe ich einen neuen Topic Type erstellt namens Vermerk. Allerdings wenn ich ihn beim Posten auswähle kommt folgender Fehler:
Code: Alles auswählen
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'topic_type = 0 WHERE topic_id = 149' at line 1
UPDATE phpbb_topics SET topic_title = 'test', topic_type = 0 topic_type = 0 WHERE topic_id = 149
Line : 242
File : functions_post.php
Code: Alles auswählen
#-----[ FIND ]----------------------------------------------
#
$sql =
#-----[ IN-LINE FIND ]----------------------------------------------
#
topic_type = $topic_type
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------------------
#
$topic_type_active
Code: Alles auswählen
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', 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))
{