fixed counting of posts & replies

main
fuzzykitten 2025-04-11 08:26:33 -04:00
parent 53f018333a
commit 1124f6c7db
1 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ function give_total_posts($db, $sub, $original_only, $settings)
$statement = $db->prepare("SELECT post_id
FROM threads
WHERE sub = '$sub'
AND post_id = org_id
AND org_id = original
AND shadow = 'no'");
$result = $statement->execute();
$counter = 0;
@ -363,7 +363,7 @@ function give_total_posts($db, $sub, $original_only, $settings)
$no_overboard .= "'" . $last . "'";
$statement = $db->prepare("SELECT post_id
FROM threads
WHERE post_id = org_id
WHERE org_id = original
AND sub NOT IN ($no_overboard)
AND shadow = 'no'");
$result = $statement->execute();