diff options
| author | czaks <marcin@6irc.net> | 2014-05-02 18:58:21 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-05-02 18:58:21 +0200 |
| commit | 9416587d40452b385f46d61c6479fd6b3f6af4d8 (patch) | |
| tree | 57887ccb07aaf80896bab2ea991d0e423c020b58 /inc | |
| parent | b1912ba86f933f40ef16d041621ef46b8a231e23 (diff) | |
fix a bug with multiple images; thanks to saiko of tahta.ch for reporting it
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index 041e3733..6963f9e6 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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)); } } |
