From c93b394307211c1c61530cb83f31fa538ad3052a Mon Sep 17 00:00:00 2001 From: Milan Date: Thu, 17 Oct 2019 20:13:14 +0200 Subject: [PATCH] fix comment statistics --- lib/calcms/comments.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/calcms/comments.pm b/lib/calcms/comments.pm index 2396abf..7b5d8fc 100644 --- a/lib/calcms/comments.pm +++ b/lib/calcms/comments.pm @@ -509,7 +509,7 @@ sub set_lock_status ($$$) { my $comments = db::get( $dbh, $query, $bind_values ); if ( scalar @$comments > 0 ) { $comment->{event_id} = $comments->[0]->{event_id}; - update_comment_count( $dbh, $comment ); + update_comment_count( $dbh, $config, $comment ); } }