fixed counting of posts & replies
parent
53f018333a
commit
1124f6c7db
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue