dev auf main #68

Open
niklas.ortmann wants to merge 1044 commits from devNachCSRF into main
Showing only changes of commit 9b9f71d21c - Show all commits
+7 -2
View File
@@ -234,13 +234,18 @@ class DatabaseInitializer {
// Bestimmt per Zufall einen Autor aus dem Pool der gültigen E-Mails
$randomAuthor = $availableEmails[array_rand($availableEmails)];
// Text in (blocks[i][type]/[text]/[image])-Format umwandeln:
$content = json_encode([
['type' => 'text', 'value' => $article[1]]
], JSON_UNESCAPED_UNICODE);
$articleInsertStmt->execute([
':title' => $article[0],
':content' => $article[1],
':content' => $content,
':author' => $randomAuthor,
':category' => $article[2],
':tags' => $article[3]
]);
}
}
}
}