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 ); } }