Update updateArticle.php

This commit is contained in:
NOrtmann1
2026-06-10 15:52:12 +02:00
parent 53865efc78
commit d5fdc9383f
+3 -2
View File
@@ -68,10 +68,11 @@ include_once 'php/controller/showArticle-controller.php';
?>
<input type="text" id="title" name="title"
value="<?php
if (isset($title) && !empty($title)){echo htmlspecialchars($title);
}elseif (isset($_SESSION['old_title']) && !empty($_SESSION['old_title'])){
if (isset($_SESSION['old_title']) && !empty($_SESSION['old_title'])){
echo htmlspecialchars($_SESSION['old_title']);
unset($_SESSION['old_title']);
}elseif (isset($title) && !empty($title)){
echo htmlspecialchars($title);
}
?>"