fix typo contribution_id

This commit is contained in:
luptmoor
2026-04-28 10:08:49 +02:00
parent 02ba53724e
commit 942affd5e5

View File

@@ -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']]);