diff --git a/opt/base.php b/opt/base.php index 49ba0ff..8c734ed 100644 --- a/opt/base.php +++ b/opt/base.php @@ -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();