Skip to content
Snippets Groups Projects
Commit d00b9923 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

add user_id column to query, fixes #1194

Closes #1194

Merge request studip/studip!708
parent 722ed789
No related branches found
No related tags found
No related merge requests found
......@@ -1242,12 +1242,11 @@ class ForumEntry implements PrivacyObject
$stmt->execute([$seminar_id, $seminar_id]);
if ($stmt->fetchColumn() == 0) {
$stmt = DBManager::get()->prepare("INSERT INTO forum_entries
(topic_id, seminar_id, name, mkdate, chdate, lft, rgt, depth)
VALUES (?, ?, 'Übersicht', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 1, 0)");
(topic_id, seminar_id, user_id, name, mkdate, chdate, lft, rgt, depth)
VALUES (?, ?, '', 'Übersicht', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 1, 0)");
$stmt->execute([$seminar_id, $seminar_id]);
}
// make sure, that the category "Allgemein" exists
$stmt = DBManager::get()->prepare("INSERT IGNORE INTO forum_categories
(category_id, seminar_id, entry_name) VALUES (?, ?, ?)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment