From 7470aa4e0bfec7e4e9a816a815e8cdd11f1e05f2 Mon Sep 17 00:00:00 2001 From: Achim Ennenbach Date: Thu, 31 May 2018 20:48:03 +0200 Subject: [PATCH] Fixes #3154 Added missing 6th argument which throwed an exception --- comment.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/comment.php b/comment.php index d38a5b0f9..d17577a5a 100644 --- a/comment.php +++ b/comment.php @@ -140,7 +140,12 @@ if(e_AJAX_REQUEST) // TODO improve security $width = ($pid) ? 1 : 0; $ret['html'] = "\n\n
  • "; - $ret['html'] .= e107::getComment()->render_comment($row,'comments','comment',intval($_POST['itemid']),$width); + + /** + * Fix for issue e107inc/e107#3154 (Comments not refreshing on submission) + * Missing 6th argument ($subject) caused an exception + */ + $ret['html'] .= e107::getComment()->render_comment($row,'comments','comment',intval($_POST['itemid']),$width, $tp->toDB($clean_subject)); $ret['html'] .= "
  • \n\n"; $ret['error'] = false;