summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-05-02 19:32:18 +0200
committerczaks <marcin@6irc.net>2014-05-02 19:32:18 +0200
commit211c1acec935357620aa9009c7ec3f23f1af368d (patch)
tree064abd781952a1f03098d22153f6911d082a125a /inc
parent9416587d40452b385f46d61c6479fd6b3f6af4d8 (diff)
actually fix this bug
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 6963f9e6..a3fd288d 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -2041,8 +2041,8 @@ function buildThread50($id, $return = false, $mod = false, $thread = null, $anti
if (!isset($thread)) {
$thread = new Thread($post, $mod ? '?/' : $config['root'], $mod);
} else {
- if ($post['file'])
- $num_images++;
+ if ($post['files'])
+ $num_images += $post['num_files'];
$thread->add(new Post($post, $mod ? '?/' : $config['root'], $mod));
}
@@ -2075,7 +2075,7 @@ function buildThread50($id, $return = false, $mod = false, $thread = null, $anti
if ($index == count($allPosts)-count($thread->posts))
break;
if ($post->files)
- $thread->omitted_images += count(json_decode($post->files));
+ $thread->omitted_images += $post->num_files;
}
}