Skip to content

Commit 6a66cf9

Browse files
authored
Fix reputation sync
Step 6 is supposed to use rep_id as reference for processing chunk size, since it uses max rep_id.
1 parent e428056 commit 6a66cf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

root/includes/acp/acp_reputation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ function main($id, $mode)
311311
$sql = 'SELECT SUM(point) AS total_points, rep_to
312312
FROM ' . REPUTATIONS_TABLE . '
313313
WHERE action != 5
314-
AND rep_to >= ' . ($start + 1) . '
315-
AND rep_to <= ' . ($start + $this->step) . '
314+
AND rep_id >= ' . ($start + 1) . '
315+
AND rep_id <= ' . ($start + $this->step) . '
316316
GROUP BY rep_to';
317317
$result = $db->sql_query($sql);
318318

0 commit comments

Comments
 (0)