From 942affd5e57afd831e28227aab6936fb138fba77 Mon Sep 17 00:00:00 2001 From: luptmoor Date: Tue, 28 Apr 2026 10:08:49 +0200 Subject: [PATCH] fix typo contribution_id --- public/api/contributions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/api/contributions.php b/public/api/contributions.php index 1a0f27e..0e737c4 100644 --- a/public/api/contributions.php +++ b/public/api/contributions.php @@ -632,7 +632,7 @@ function handle_create_comment($input) { $stmt2 = $pdo->prepare(" UPDATE contributions SET comment_count = comment_count + 1 - WHERE id = :cid; + WHERE contribution_id = :cid; "); $stmt2->execute([':cid' => $input['contribution_id']]);