fix a bug with multiple images; thanks to saiko of tahta.ch for reporting it

This commit is contained in:
czaks 2014-05-02 18:58:21 +02:00
parent b1912ba86f
commit 9416587d40

View File

@ -2074,8 +2074,8 @@ function buildThread50($id, $return = false, $mod = false, $thread = null, $anti
foreach ($allPosts as $index => $post) {
if ($index == count($allPosts)-count($thread->posts))
break;
if ($post->file)
$thread->omitted_images++;
if ($post->files)
$thread->omitted_images += count(json_decode($post->files));
}
}