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 7e2b29bfb0 - Show all commits
+1 -8
View File
@@ -78,14 +78,7 @@ include_once 'php/controller/showArticle-controller.php';
?>"
placeholder="Titel hier eingeben" required>
<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);
}
?>
<?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>