From eb38547a243bbc749dd1cc9f01441e03a0ec19fd Mon Sep 17 00:00:00 2001 From: onli Date: Sun, 4 Jul 2021 18:43:08 +0200 Subject: [PATCH] Init all required comment form fields --- include/functions_comments.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index d974cbc6..821558a4 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -204,7 +204,7 @@ function serendipity_displayCommentForm($id, $url = '', $comments = NULL, $data 'commentform_entry' => $entry ); - if (! isset($commentform_data['required_fields'])) { $commentform_data['required_fields'] = ['name' => false, 'comment' => false]; } + if (! isset($commentform_data['required_fields'])) { $commentform_data['required_fields'] = ['name' => false, 'comment' => false, 'email' => false, 'url' => false]; } $serendipity['smarty']->assign($commentform_data);