bugfix_updateArticle_missingID & updateArticle Leerzeichen im content #28

Merged
niklas.ortmann merged 11 commits from bugfix_updateArticle_missingID into dev 2026-06-10 16:08:09 +02:00
Showing only changes of commit 23321f90c2 - Show all commits
+2 -3
View File
@@ -53,9 +53,8 @@ if (!isset($_SESSION["user"])) {
<input type="text" id="title" name="title"
value="<?php echo htmlspecialchars($_SESSION['old_title'] ?? ''); unset($_SESSION['old_title']); ?>"
placeholder="Titel hier eingeben" required>
<textarea id="content" name="content" placeholder="Schreibe deinen Beitrag...">
<?php echo htmlspecialchars($_SESSION['old_content'] ?? ''); unset($_SESSION['old_content']); ?>
</textarea>
<textarea id="content" name="content" placeholder="Schreibe deinen Beitrag..."><?php if (isset($_SESSION['old_content']) && !empty($_SESSION['old_content'])){echo htmlspecialchars($_SESSION['old_content']); unset($_SESSION['old_content']);}elseif (isset($content) && !empty($content)){echo htmlspecialchars($content);}?></textarea>
</main>
<!-- Seitenleiste -->