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