From 85a6b11dec7a8c2ea6c9523eb9799e61fbff6298 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 4 Dec 2023 19:14:59 +0100 Subject: [PATCH] fixes #1970 Undefined array key comments --- include/picture_comment.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php index d5410f496..e5814c359 100644 --- a/include/picture_comment.inc.php +++ b/include/picture_comment.inc.php @@ -107,6 +107,7 @@ SELECT array( 'COMMENT_COUNT' => $row['nb_comments'], 'navbar' => $navigation_bar, + 'comments' => array(), ) ); @@ -263,4 +264,4 @@ SELECT $template->assign_var_from_handle('COMMENT_LIST', 'comment_list'); } -?> \ No newline at end of file +?>