Retiens le précédent nom d'un visiteur non connecté

This commit is contained in:
clement committed 2022-12-11 12:04:53 +01:00
1 parent c2412de95a
commit 82254c2f79
2 files changed
+2 -1

No files matched your search

@@ -53,6 +53,7 @@ class VisitorController {
if ($author !== null) {
$comment->setAuthor($author);
} else {
$_SESSION['previous_name'] = $_POST['name'];
$comment->setAuthorName($_POST['name']);
}
$di->getCommentGateway()->insert($comment);