@ -995,7 +995,7 @@ function index($page, $mod=false) {
}
$post_count = $posts->rowCount();
}
//}
if ($post_count == ($th['sticky'] ? $config['threads_preview_sticky'] : $config['threads_preview'])) {
$count = prepare(sprintf("SELECT COUNT(`id`) as `num` FROM `posts_%s` WHERE `thread` = :thread UNION ALL SELECT COUNT(`id`) FROM `posts_%s` WHERE `file` IS NOT NULL AND `thread` = :thread", $board['uri'], $board['uri']));
@ -1009,8 +1009,8 @@ function index($page, $mod=false) {