Browse Source

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

pull/40/head
czaks 10 years ago
parent
commit
9416587d40
  1. 4
      inc/functions.php

4
inc/functions.php

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

Loading…
Cancel
Save